Commit f2ea312c authored by Mike McCormack's avatar Mike McCormack Committed by John W. Linville

rtlwifi: Remove set_rfpowerstate_inprogress

set_rfpowerstate_inprogress is only set and never read
so remove it.
Signed-off-by: default avatarMike McCormack <mikem@ring3k.org>
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 2e69167c
...@@ -519,7 +519,6 @@ static bool _rtl92ce_phy_set_rf_power_state(struct ieee80211_hw *hw, ...@@ -519,7 +519,6 @@ static bool _rtl92ce_phy_set_rf_power_state(struct ieee80211_hw *hw,
u8 i, queue_id; u8 i, queue_id;
struct rtl8192_tx_ring *ring = NULL; struct rtl8192_tx_ring *ring = NULL;
ppsc->set_rfpowerstate_inprogress = true;
switch (rfpwr_state) { switch (rfpwr_state) {
case ERFON:{ case ERFON:{
if ((ppsc->rfpwr_state == ERFOFF) && if ((ppsc->rfpwr_state == ERFOFF) &&
...@@ -615,7 +614,6 @@ static bool _rtl92ce_phy_set_rf_power_state(struct ieee80211_hw *hw, ...@@ -615,7 +614,6 @@ static bool _rtl92ce_phy_set_rf_power_state(struct ieee80211_hw *hw,
} }
if (bresult) if (bresult)
ppsc->rfpwr_state = rfpwr_state; ppsc->rfpwr_state = rfpwr_state;
ppsc->set_rfpowerstate_inprogress = false;
return bresult; return bresult;
} }
......
...@@ -470,7 +470,6 @@ static bool _rtl92cu_phy_set_rf_power_state(struct ieee80211_hw *hw, ...@@ -470,7 +470,6 @@ static bool _rtl92cu_phy_set_rf_power_state(struct ieee80211_hw *hw,
u8 i, queue_id; u8 i, queue_id;
struct rtl8192_tx_ring *ring = NULL; struct rtl8192_tx_ring *ring = NULL;
ppsc->set_rfpowerstate_inprogress = true;
switch (rfpwr_state) { switch (rfpwr_state) {
case ERFON: case ERFON:
if ((ppsc->rfpwr_state == ERFOFF) && if ((ppsc->rfpwr_state == ERFOFF) &&
...@@ -590,7 +589,6 @@ static bool _rtl92cu_phy_set_rf_power_state(struct ieee80211_hw *hw, ...@@ -590,7 +589,6 @@ static bool _rtl92cu_phy_set_rf_power_state(struct ieee80211_hw *hw,
} }
if (bresult) if (bresult)
ppsc->rfpwr_state = rfpwr_state; ppsc->rfpwr_state = rfpwr_state;
ppsc->set_rfpowerstate_inprogress = false;
return bresult; return bresult;
} }
......
...@@ -546,8 +546,6 @@ bool rtl92s_phy_set_rf_power_state(struct ieee80211_hw *hw, ...@@ -546,8 +546,6 @@ bool rtl92s_phy_set_rf_power_state(struct ieee80211_hw *hw,
if (rfpwr_state == ppsc->rfpwr_state) if (rfpwr_state == ppsc->rfpwr_state)
return false; return false;
ppsc->set_rfpowerstate_inprogress = true;
switch (rfpwr_state) { switch (rfpwr_state) {
case ERFON:{ case ERFON:{
if ((ppsc->rfpwr_state == ERFOFF) && if ((ppsc->rfpwr_state == ERFOFF) &&
...@@ -659,8 +657,6 @@ bool rtl92s_phy_set_rf_power_state(struct ieee80211_hw *hw, ...@@ -659,8 +657,6 @@ bool rtl92s_phy_set_rf_power_state(struct ieee80211_hw *hw,
if (bresult) if (bresult)
ppsc->rfpwr_state = rfpwr_state; ppsc->rfpwr_state = rfpwr_state;
ppsc->set_rfpowerstate_inprogress = false;
return bresult; return bresult;
} }
......
...@@ -1188,7 +1188,6 @@ struct rtl_efuse { ...@@ -1188,7 +1188,6 @@ struct rtl_efuse {
struct rtl_ps_ctl { struct rtl_ps_ctl {
bool pwrdomain_protect; bool pwrdomain_protect;
bool set_rfpowerstate_inprogress;
bool in_powersavemode; bool in_powersavemode;
bool rfchange_inprogress; bool rfchange_inprogress;
bool swrf_processing; bool swrf_processing;
......
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