Commit 8843d7a4 authored by navin patidar's avatar navin patidar Committed by Greg Kroah-Hartman

staging: rtl8188eu: Remove bCardDisableWOHSM from struct adapter

driver doesn't use value stored in bCardDisableWOHSM.
Signed-off-by: default avatarnavin patidar <navin.patidar@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f3dd77bc
...@@ -160,7 +160,6 @@ void rtw_ps_processor(struct adapter *padapter) ...@@ -160,7 +160,6 @@ void rtw_ps_processor(struct adapter *padapter)
if (rfpwrstate == rf_off) { if (rfpwrstate == rf_off) {
pwrpriv->change_rfpwrstate = rf_off; pwrpriv->change_rfpwrstate = rf_off;
pwrpriv->brfoffbyhw = true; pwrpriv->brfoffbyhw = true;
padapter->bCardDisableWOHSM = true;
rtw_hw_suspend(padapter); rtw_hw_suspend(padapter);
} else { } else {
pwrpriv->change_rfpwrstate = rf_on; pwrpriv->change_rfpwrstate = rf_on;
......
...@@ -218,7 +218,6 @@ struct adapter { ...@@ -218,7 +218,6 @@ struct adapter {
s32 bDriverStopped; s32 bDriverStopped;
s32 bSurpriseRemoved; s32 bSurpriseRemoved;
s32 bCardDisableWOHSM;
u8 hw_init_completed; u8 hw_init_completed;
......
...@@ -1042,7 +1042,6 @@ int _netdev_open(struct net_device *pnetdev) ...@@ -1042,7 +1042,6 @@ int _netdev_open(struct net_device *pnetdev)
if (!padapter->bup) { if (!padapter->bup) {
padapter->bDriverStopped = false; padapter->bDriverStopped = false;
padapter->bSurpriseRemoved = false; padapter->bSurpriseRemoved = false;
padapter->bCardDisableWOHSM = false;
status = rtw_hal_init(padapter); status = rtw_hal_init(padapter);
if (status == _FAIL) { if (status == _FAIL) {
...@@ -1117,7 +1116,6 @@ static int ips_netdrv_open(struct adapter *padapter) ...@@ -1117,7 +1116,6 @@ static int ips_netdrv_open(struct adapter *padapter)
padapter->bDriverStopped = false; padapter->bDriverStopped = false;
padapter->bSurpriseRemoved = false; padapter->bSurpriseRemoved = false;
padapter->bCardDisableWOHSM = false;
status = rtw_hal_init(padapter); status = rtw_hal_init(padapter);
if (status == _FAIL) { if (status == _FAIL) {
...@@ -1160,13 +1158,11 @@ void rtw_ips_pwr_down(struct adapter *padapter) ...@@ -1160,13 +1158,11 @@ void rtw_ips_pwr_down(struct adapter *padapter)
u32 start_time = jiffies; u32 start_time = jiffies;
DBG_88E("===> rtw_ips_pwr_down...................\n"); DBG_88E("===> rtw_ips_pwr_down...................\n");
padapter->bCardDisableWOHSM = true;
padapter->net_closed = true; padapter->net_closed = true;
rtw_led_control(padapter, LED_CTL_POWER_OFF); rtw_led_control(padapter, LED_CTL_POWER_OFF);
rtw_ips_dev_unload(padapter); rtw_ips_dev_unload(padapter);
padapter->bCardDisableWOHSM = false;
DBG_88E("<=== rtw_ips_pwr_down..................... in %dms\n", rtw_get_passing_time_ms(start_time)); DBG_88E("<=== rtw_ips_pwr_down..................... in %dms\n", rtw_get_passing_time_ms(start_time));
} }
......
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