diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2014-07-01 08:11:19 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-08 22:51:37 (GMT) |
commit | c3a3e226113dc43a0acdca3b98a7e175cc8b622b (patch) | |
tree | be1e18876b95a3035b1cf431c7826be588beb997 | |
parent | e976cf6f135713cb6f4c904bf24fadfbbf325160 (diff) | |
download | linux-c3a3e226113dc43a0acdca3b98a7e175cc8b622b.tar.xz |
staging: rtl8723au: pwrctrl_priv->ps_flag is never set
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rtl8723au/include/rtw_pwrctrl.h | 2 | ||||
-rw-r--r-- | drivers/staging/rtl8723au/os_dep/os_intfs.c | 5 |
2 files changed, 0 insertions, 7 deletions
diff --git a/drivers/staging/rtl8723au/include/rtw_pwrctrl.h b/drivers/staging/rtl8723au/include/rtw_pwrctrl.h index 45e13ce..1fa712f 100644 --- a/drivers/staging/rtl8723au/include/rtw_pwrctrl.h +++ b/drivers/staging/rtl8723au/include/rtw_pwrctrl.h @@ -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; diff --git a/drivers/staging/rtl8723au/os_dep/os_intfs.c b/drivers/staging/rtl8723au/os_dep/os_intfs.c index ee3d62c..7fa5c4c 100644 --- a/drivers/staging/rtl8723au/os_dep/os_intfs.c +++ b/drivers/staging/rtl8723au/os_dep/os_intfs.c @@ -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: |