staging: r8188eu: remove write-only variable tog
authorMartin Kaiser <martin@kaiser.cx>
Sat, 11 Sep 2021 14:15:13 +0000 (16:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Sep 2021 16:19:12 +0000 (18:19 +0200)
tog in struct pwrctrl_priv is never read. Remove it.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20210911141521.24901-5-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 2a0ee3aac700086631e0380271b32266b6c2cf27..86841093caa835993d2a30485a0c507ff4026428 100644 (file)
@@ -213,8 +213,6 @@ void rtw_set_rpwm(struct adapter *padapter, u8 pslv)
        }
 
        pwrpriv->rpwm = pslv;
-
-       pwrpriv->tog += 0x80;
 }
 
 static u8 PS_RDY_CHECK(struct adapter *padapter)
@@ -424,8 +422,6 @@ void rtw_init_pwrctrl_priv(struct adapter *padapter)
        pwrctrlpriv->smart_ps = padapter->registrypriv.smart_ps;
        pwrctrlpriv->bcn_ant_mode = 0;
 
-       pwrctrlpriv->tog = 0x80;
-
        timer_setup(&pwrctrlpriv->pwr_state_check_timer, pwr_state_check_handler, 0);
 }
 
index c5804a48072bfa439d107ab108f953d110c4ee15..5be67644ba5fbfdd532d92066670d69ff1d55cfe 100644 (file)
@@ -152,7 +152,6 @@ enum { /*  for ips_mode */
 struct pwrctrl_priv {
        struct semaphore lock;
        volatile u8 rpwm; /*  requested power state for fw */
-       volatile u8 tog; /*  toggling */
        volatile u8 cpwm_tog; /*  toggling */
 
        u8      pwr_mode;