staging: rtl8192e: Remove unused variables txov.., txbeokint and txbkokint
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Wed, 25 Jan 2023 20:09:14 +0000 (21:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jan 2023 09:12:05 +0000 (10:12 +0100)
txoverflow, txbeokint and txbkokint are initialized and increased but
never read. Remove dead code.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/023f612dc35eca3a74c31344f7dbb168180bf437.1674675808.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_core.c
drivers/staging/rtl8192e/rtl8192e/rtl_core.h

index ff9dc06642f6fc7de55f7c7566ee03e27bdcc2e4..768324cbe2535d2e59767a80fc89f5bc25921e62 100644 (file)
@@ -2181,17 +2181,12 @@ static irqreturn_t _rtl92e_irq(int irq, void *netdev)
        if (inta & IMR_RXFOVW)
                tasklet_schedule(&priv->irq_rx_tasklet);
 
-       if (inta & IMR_TXFOVW)
-               priv->stats.txoverflow++;
-
        if (inta & IMR_BKDOK) {
-               priv->stats.txbkokint++;
                priv->rtllib->link_detect_info.NumTxOkInPeriod++;
                _rtl92e_tx_isr(dev, BK_QUEUE);
        }
 
        if (inta & IMR_BEDOK) {
-               priv->stats.txbeokint++;
                priv->rtllib->link_detect_info.NumTxOkInPeriod++;
                _rtl92e_tx_isr(dev, BE_QUEUE);
        }
index 2d1561a202d073e6a2ecfa46141485b5ec94b911..96d340f686e90849cdeca594700e4193f7ff1958 100644 (file)
@@ -184,9 +184,6 @@ enum reset_type {
 
 struct rt_stats {
        unsigned long received_rate_histogram[4][32];
-       unsigned long txoverflow;
-       unsigned long txbeokint;
-       unsigned long txbkokint;
        unsigned long txviokint;
        unsigned long txvookint;
        unsigned long txbeaconokint;