Commit 697541a0 authored by Philipp Hortmann's avatar Philipp Hortmann Committed by Greg Kroah-Hartman

staging: rtl8192e: Remove unused variable bInPowerSaveMode

bInPowerSaveMode is just once initialized and changed but never evaluated.
Remove resulting dead code.
Signed-off-by: default avatarPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/be3ebecd88b85ba1d87b9b3fbe02f2e78e6a669e.1664616227.git.philipp.g.hortmann@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3700c365
...@@ -881,7 +881,6 @@ static void _rtl92e_init_priv_variable(struct net_device *dev) ...@@ -881,7 +881,6 @@ static void _rtl92e_init_priv_variable(struct net_device *dev)
priv->hw_radio_off = false; priv->hw_radio_off = false;
priv->RegRfOff = false; priv->RegRfOff = false;
priv->isRFOff = false; priv->isRFOff = false;
priv->bInPowerSaveMode = false;
priv->rtllib->rf_off_reason = 0; priv->rtllib->rf_off_reason = 0;
priv->rf_change_in_progress = false; priv->rf_change_in_progress = false;
priv->bHwRfOffAction = 0; priv->bHwRfOffAction = 0;
......
...@@ -475,7 +475,6 @@ struct r8192_priv { ...@@ -475,7 +475,6 @@ struct r8192_priv {
bool RegRfOff; bool RegRfOff;
bool isRFOff; bool isRFOff;
bool bInPowerSaveMode;
u8 bHwRfOffAction; u8 bHwRfOffAction;
bool rf_change_in_progress; bool rf_change_in_progress;
......
...@@ -122,7 +122,6 @@ void rtl92e_ips_enter(struct net_device *dev) ...@@ -122,7 +122,6 @@ void rtl92e_ips_enter(struct net_device *dev)
(priv->rtllib->iw_mode != IW_MODE_MASTER)) { (priv->rtllib->iw_mode != IW_MODE_MASTER)) {
pPSC->eInactivePowerState = rf_off; pPSC->eInactivePowerState = rf_off;
priv->isRFOff = true; priv->isRFOff = true;
priv->bInPowerSaveMode = true;
_rtl92e_ps_update_rf_state(dev); _rtl92e_ps_update_rf_state(dev);
} }
} }
...@@ -138,7 +137,6 @@ void rtl92e_ips_leave(struct net_device *dev) ...@@ -138,7 +137,6 @@ void rtl92e_ips_leave(struct net_device *dev)
if (rt_state != rf_on && !pPSC->bSwRfProcessing && if (rt_state != rf_on && !pPSC->bSwRfProcessing &&
priv->rtllib->rf_off_reason <= RF_CHANGE_BY_IPS) { priv->rtllib->rf_off_reason <= RF_CHANGE_BY_IPS) {
pPSC->eInactivePowerState = rf_on; pPSC->eInactivePowerState = rf_on;
priv->bInPowerSaveMode = false;
_rtl92e_ps_update_rf_state(dev); _rtl92e_ps_update_rf_state(dev);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment