staging: rtl8192e: Remove unused variables txviok.., txvook.. and txbea..
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Wed, 25 Jan 2023 20:09:20 +0000 (21:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jan 2023 09:12:05 +0000 (10:12 +0100)
txviokint, txvookint and txbeaconokint 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/c45501eee5fbf2cc3e5ad999bbbe8e071e341a2c.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 768324cbe2535d2e59767a80fc89f5bc25921e62..4cc90425fa4ce364e14aa4abbc9ab612ee860446 100644 (file)
@@ -2139,9 +2139,6 @@ static irqreturn_t _rtl92e_irq(int irq, void *netdev)
                goto done;
        }
 
-       if (inta & IMR_TBDOK)
-               priv->stats.txbeaconokint++;
-
        if (inta & IMR_TBDER)
                priv->stats.txbeaconerr++;
 
@@ -2192,13 +2189,11 @@ static irqreturn_t _rtl92e_irq(int irq, void *netdev)
        }
 
        if (inta & IMR_VIDOK) {
-               priv->stats.txviokint++;
                priv->rtllib->link_detect_info.NumTxOkInPeriod++;
                _rtl92e_tx_isr(dev, VI_QUEUE);
        }
 
        if (inta & IMR_VODOK) {
-               priv->stats.txvookint++;
                priv->rtllib->link_detect_info.NumTxOkInPeriod++;
                _rtl92e_tx_isr(dev, VO_QUEUE);
        }
index 96d340f686e90849cdeca594700e4193f7ff1958..f8b2201ea288cf950006e32145e4f45bad77420a 100644 (file)
@@ -184,9 +184,6 @@ enum reset_type {
 
 struct rt_stats {
        unsigned long received_rate_histogram[4][32];
-       unsigned long txviokint;
-       unsigned long txvookint;
-       unsigned long txbeaconokint;
        unsigned long txbeaconerr;
        unsigned long txmanageokint;
        unsigned long txcmdpktokint;