staging: r8188eu: remove unused fields from struct pwrctrl_priv
authorMichael Straube <straube.linux@gmail.com>
Mon, 4 Apr 2022 08:21:38 +0000 (10:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Apr 2022 14:34:51 +0000 (16:34 +0200)
There are some unused fields in the pwrctrl_priv structure.
Remove them.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220404082142.4639-2-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/include/rtw_pwrctrl.h

index 4cc365a..b0d4810 100644 (file)
@@ -47,16 +47,10 @@ struct pwrctrl_priv {
        u8      smart_ps;
        u8      bcn_ant_mode;
 
-       u32     alives;
-       struct work_struct cpwm_event;
        bool    bpower_saving;
 
        u8      reg_rfoff;
-       u8      reg_pdnmode; /* powerdown mode */
 
-       /* RF OFF Level */
-       u32     cur_ps_level;
-       u32     reg_rfps_level;
        uint    ips_enter_cnts;
        uint    ips_leave_cnts;
 
@@ -72,7 +66,6 @@ struct pwrctrl_priv {
        u8      power_mgnt;
        u8      bFwCurrentInPSMode;
        u32     DelayLPSLastTimeStamp;
-       s32             pnp_current_pwr_state;
        u8              pnp_bstop_trx;
 
        u8              bInSuspend;
@@ -86,7 +79,6 @@ struct pwrctrl_priv {
        enum rt_rf_power_state  rf_pwrstate;/* cur power state */
        enum rt_rf_power_state  change_rfpwrstate;
 
-       u8              wepkeymask;
        u8              bkeepfwalive;
 };