]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl8188eu: Remove bCardDisableWOHSM from struct adapter
authornavin patidar <navin.patidar@gmail.com>
Sun, 1 Jun 2014 12:16:50 +0000 (17:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:30:04 +0000 (15:30 -0700)
driver doesn't use value stored in bCardDisableWOHSM.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_pwrctrl.c
drivers/staging/rtl8188eu/include/drv_types.h
drivers/staging/rtl8188eu/os_dep/os_intfs.c

index b8d66fa9e9337f38e64eb99fd4ba4c8bf5f5386b..599f2b69873cd3fcdff298d4f7787a95be4e9440 100644 (file)
@@ -160,7 +160,6 @@ void rtw_ps_processor(struct adapter *padapter)
                        if (rfpwrstate == rf_off) {
                                pwrpriv->change_rfpwrstate = rf_off;
                                pwrpriv->brfoffbyhw = true;
-                               padapter->bCardDisableWOHSM = true;
                                rtw_hw_suspend(padapter);
                        } else {
                                pwrpriv->change_rfpwrstate = rf_on;
index 1676bb4970426307231750fb47e2569aa3263419..974f12fdf5083fdb91667c337d378d39d4d67534 100644 (file)
@@ -218,7 +218,6 @@ struct adapter {
 
        s32     bDriverStopped;
        s32     bSurpriseRemoved;
-       s32     bCardDisableWOHSM;
 
        u8      hw_init_completed;
 
index 2df27c71c5dff785a8d9b0777d484799f549073d..1d961bdbc3c7e1d82d5869104514a368dee35ee0 100644 (file)
@@ -1042,7 +1042,6 @@ int _netdev_open(struct net_device *pnetdev)
        if (!padapter->bup) {
                padapter->bDriverStopped = false;
                padapter->bSurpriseRemoved = false;
-               padapter->bCardDisableWOHSM = false;
 
                status = rtw_hal_init(padapter);
                if (status == _FAIL) {
@@ -1117,7 +1116,6 @@ static int  ips_netdrv_open(struct adapter *padapter)
 
        padapter->bDriverStopped = false;
        padapter->bSurpriseRemoved = false;
-       padapter->bCardDisableWOHSM = false;
 
        status = rtw_hal_init(padapter);
        if (status == _FAIL) {
@@ -1160,13 +1158,11 @@ void rtw_ips_pwr_down(struct adapter *padapter)
        u32 start_time = jiffies;
        DBG_88E("===> rtw_ips_pwr_down...................\n");
 
-       padapter->bCardDisableWOHSM = true;
        padapter->net_closed = true;
 
        rtw_led_control(padapter, LED_CTL_POWER_OFF);
 
        rtw_ips_dev_unload(padapter);
-       padapter->bCardDisableWOHSM = false;
        DBG_88E("<=== rtw_ips_pwr_down..................... in %dms\n", rtw_get_passing_time_ms(start_time));
 }