staging: rtl8192e: Remove unused variable isRFOff
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sat, 1 Oct 2022 09:41:04 +0000 (11:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Oct 2022 15:19:26 +0000 (17:19 +0200)
isRFOff is just once initialized and changed but never evaluated. Remove
resulting dead code.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/53242638126775f6698fdcfc49ac552a4e08578b.1664616227.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
drivers/staging/rtl8192e/rtl8192e/rtl_ps.c

index db55b9b65192cde6ab6c8b59c49d9c981bb81d1d..3cddc9a86f28f4c163cf0d0f01a40ff6f4942a23 100644 (file)
@@ -880,7 +880,6 @@ static void _rtl92e_init_priv_variable(struct net_device *dev)
        priv->rtllib->wx_set_enc = 0;
        priv->hw_radio_off = false;
        priv->RegRfOff = false;
-       priv->isRFOff = false;
        priv->rtllib->rf_off_reason = 0;
        priv->rf_change_in_progress = false;
        priv->bHwRfOffAction = 0;
index 28733dc2038b1dd2e36ca261da88932104f767ac..23dccd6079ea5f1249b48b630afb138b7f4b7d99 100644 (file)
@@ -474,7 +474,6 @@ struct r8192_priv {
        u16 ChannelPlan;
 
        bool RegRfOff;
-       bool isRFOff;
        u8 bHwRfOffAction;
 
        bool rf_change_in_progress;
index 1ced5bcebdabbd4a4d8213ac45348733a39a039d..1501f7be8eee97d75f42fdc29d7304ba9c47aa60 100644 (file)
@@ -121,7 +121,6 @@ void rtl92e_ips_enter(struct net_device *dev)
                (priv->rtllib->state != RTLLIB_LINKED) &&
                (priv->rtllib->iw_mode != IW_MODE_MASTER)) {
                pPSC->eInactivePowerState = rf_off;
-               priv->isRFOff = true;
                _rtl92e_ps_update_rf_state(dev);
        }
 }