staging: rtl8723au: pwrctrl_priv->ps_flag is never set
authorJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 1 Jul 2014 08:11:19 +0000 (10:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Jul 2014 22:51:37 +0000 (15:51 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/include/rtw_pwrctrl.h
drivers/staging/rtl8723au/os_dep/os_intfs.c

index 45e13ce2b51638337550d75006a602acbe49e5bb..1fa712fbd0a3de5bc3786618dd0a525e46efda87 100644 (file)
@@ -195,8 +195,6 @@ struct pwrctrl_priv {
        int             pwr_state_check_interval;
        u8              pwr_state_check_cnts;
 
-       int             ps_flag;
-
        enum rt_rf_power_state  rf_pwrstate;/* cur power state */
        enum rt_rf_power_state  change_rfpwrstate;
 
index ee3d62cc1ab0aee87a4491779cdabbebb6c7de5f..7fa5c4c0c8badf89bc478a5fa43c894584d0e591 100644 (file)
@@ -663,10 +663,6 @@ int netdev_open23a(struct net_device *pnetdev)
        mutex_lock(&adapter_to_dvobj(padapter)->hw_init_mutex);
 
        pwrctrlpriv = &padapter->pwrctrlpriv;
-       if (pwrctrlpriv->ps_flag) {
-               padapter->net_closed = false;
-               goto netdev_open23a_normal_process;
-       }
 
        if (!padapter->bup) {
                padapter->bDriverStopped = false;
@@ -711,7 +707,6 @@ int netdev_open23a(struct net_device *pnetdev)
        else
                netif_tx_wake_all_queues(pnetdev);
 
-netdev_open23a_normal_process:
        RT_TRACE(_module_os_intfs_c_, _drv_info_, ("-871x_drv - dev_open\n"));
        DBG_8723A("-871x_drv - drv_open, bup =%d\n", padapter->bup);
 exit: