]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl8723au: pnp_bstop_trx is never set
authorJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 1 Jul 2014 08:11:18 +0000 (10:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Jul 2014 22:51:37 +0000 (15:51 -0700)
In addition remove unused pnp_current_pwr_state

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/usb_ops_linux.c
drivers/staging/rtl8723au/include/rtw_pwrctrl.h
drivers/staging/rtl8723au/os_dep/usb_ops_linux.c

index 23af7189915124125ccb19a1f3d0ce70c328b6e5..780658c80160dfb98d725c11f208aad2ad5c1cda 100644 (file)
@@ -34,10 +34,9 @@ static int usbctrl_vendorreq(struct rtw_adapter *padapter, u8 request,
        u8 *pIo_buf;
        int vendorreq_times = 0;
 
-       if (padapter->bSurpriseRemoved || padapter->pwrctrlpriv.pnp_bstop_trx) {
+       if (padapter->bSurpriseRemoved) {
                RT_TRACE(_module_hci_ops_os_c_, _drv_err_,
-                        ("usbctrl_vendorreq:(padapter->bSurpriseRemoved||"
-                         "adapter->pwrctrlpriv.pnp_bstop_trx)!!!\n"));
+                        ("usbctrl_vendorreq:(padapter->bSurpriseRemoved)!!!"));
                status = -EPERM;
                goto exit;
        }
@@ -743,12 +742,10 @@ int rtl8723au_read_port(struct rtw_adapter *adapter, u32 addr, u32 cnt,
        struct recv_priv *precvpriv = &adapter->recvpriv;
        struct usb_device *pusbd = pdvobj->pusbdev;
 
-       if (adapter->bDriverStopped || adapter->bSurpriseRemoved ||
-           adapter->pwrctrlpriv.pnp_bstop_trx) {
+       if (adapter->bDriverStopped || adapter->bSurpriseRemoved) {
                RT_TRACE(_module_hci_ops_os_c_, _drv_err_,
                         ("usb_read_port:(padapter->bDriverStopped ||"
-                         "padapter->bSurpriseRemoved ||adapter->"
-                         "pwrctrlpriv.pnp_bstop_trx)!!!\n"));
+                         "padapter->bSurpriseRemoved)!!!\n"));
                return _FAIL;
        }
 
index 2142255903e1d3bdac4b7ff46b354177620f3e0e..45e13ce2b51638337550d75006a602acbe49e5bb 100644 (file)
@@ -184,8 +184,6 @@ struct pwrctrl_priv {
        u8      bFwCurrentInPSMode;
        unsigned long   DelayLPSLastTimeStamp;
        u8      btcoex_rfon;
-       s32             pnp_current_pwr_state;
-       u8              pnp_bstop_trx;
 
        u8              bInSuspend;
 #ifdef CONFIG_8723AU_BT_COEXIST
index 33528072cb6adab46e5b0bb2837237d7e86d12ce..a3349ac57baed2809c911d86005a6d2b1803c69d 100644 (file)
@@ -153,12 +153,10 @@ int rtl8723au_write_port(struct rtw_adapter *padapter, u32 addr, u32 cnt,
 
        RT_TRACE(_module_hci_ops_os_c_, _drv_err_, ("+usb_write_port23a\n"));
 
-       if (padapter->bDriverStopped || padapter->bSurpriseRemoved ||
-           padapter->pwrctrlpriv.pnp_bstop_trx) {
+       if (padapter->bDriverStopped || padapter->bSurpriseRemoved) {
                RT_TRACE(_module_hci_ops_os_c_, _drv_err_,
-                        ("usb_write_port23a:( padapter->bDriverStopped || "
-                         "padapter->bSurpriseRemoved || "
-                         "adapter->pwrctrlpriv.pnp_bstop_trx)!!!\n"));
+                        ("%s:(padapter->bDriverStopped || "
+                         "padapter->bSurpriseRemoved)!!!\n", __func__));
                rtw23a_sctx_done_err(&pxmitbuf->sctx, RTW_SCTX_DONE_TX_DENY);
                goto exit;
        }