OSDN Git Service

staging: r8188eu: btcoex_rfon is always false
authorMartin Kaiser <martin@kaiser.cx>
Sat, 11 Sep 2021 14:15:10 +0000 (16:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Sep 2021 16:19:12 +0000 (18:19 +0200)
btcoex_rfon is always false in this driver. Remove the variable and code
that will never be executed.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20210911141521.24901-2-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_pwrctrl.c
drivers/staging/r8188eu/include/rtw_pwrctrl.h

index 353b7bd..f9ee917 100644 (file)
@@ -200,11 +200,6 @@ void rtw_set_rpwm(struct adapter *padapter, u8 pslv)
 
        pslv = PS_STATE(pslv);
 
-       if (pwrpriv->btcoex_rfon) {
-               if (pslv < PS_STATE_S4)
-                       pslv = PS_STATE_S3;
-       }
-
        if (pwrpriv->rpwm == pslv)
                return;
 
@@ -441,8 +436,6 @@ void rtw_init_pwrctrl_priv(struct adapter *padapter)
 
        pwrctrlpriv->tog = 0x80;
 
-       pwrctrlpriv->btcoex_rfon = false;
-
        timer_setup(&pwrctrlpriv->pwr_state_check_timer, pwr_state_check_handler, 0);
 }
 
index 8446dfb..6a0efb0 100644 (file)
@@ -188,7 +188,6 @@ struct pwrctrl_priv {
        u8      power_mgnt;
        u8      bFwCurrentInPSMode;
        u32     DelayLPSLastTimeStamp;
-       u8      btcoex_rfon;
        s32             pnp_current_pwr_state;
        u8              pnp_bstop_trx;