]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: r8188eu: reg_rfoff is never set
authorMichael Straube <straube.linux@gmail.com>
Mon, 4 Apr 2022 08:21:39 +0000 (10:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Apr 2022 14:34:52 +0000 (16:34 +0200)
The field reg_rfoff in struct pwrctrl_priv is never set. It stays at
its default value 0. Remove it and remove related dead code.

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

index 4bc6b08fb28250e5ab3c26c3fe7b9ccfb015330f..21ab6881796e88456fbe157ede2b5c6953628309 100644 (file)
@@ -539,10 +539,6 @@ u32 rtl8188eu_hal_init(struct adapter *Adapter)
        /*  Save target channel */
        haldata->CurrentChannel = 6;/* default set to 6 */
 
-       if (pwrctrlpriv->reg_rfoff) {
-               pwrctrlpriv->rf_pwrstate = rf_off;
-       }
-
        /*  2010/08/09 MH We need to check if we need to turnon or off RF after detecting */
        /*  HW GPIO pin. Before PHY_RFConfig8192C. */
        /*  2010/08/26 MH If Efuse does not support sective suspend then disable the function. */
index b0d48106fe564227f0df21ab580a053af12665b9..3efcc65b2f6e4ea3f1723c4fede185c590c74c86 100644 (file)
@@ -49,8 +49,6 @@ struct pwrctrl_priv {
 
        bool    bpower_saving;
 
-       u8      reg_rfoff;
-
        uint    ips_enter_cnts;
        uint    ips_leave_cnts;