staging: r8188eu: BasicRateSet is set but never used
authorMichael Straube <straube.linux@gmail.com>
Tue, 1 Feb 2022 08:42:54 +0000 (09:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Feb 2022 14:16:33 +0000 (15:16 +0100)
The varaible BasicRateSet in struct hal_data_8188e is set but never
used. Remove it.

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

index 2252e8a1d55b308e9b756bb0bdaef7802b30ade3..e6c253122e9c019101564f324170f2d8cab83199 100644 (file)
@@ -1078,7 +1078,6 @@ void SetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
                        /* CCK 5.5M & 11M ACK should be enabled for better performance */
 
                        BrateCfg = (BrateCfg | 0xd) & 0x15d;
-                       haldata->BasicRateSet = BrateCfg;
 
                        BrateCfg |= 0x01; /*  default enable 1M ACK rate */
                        /*  Set RRSR rate table. */
index 88246ef65f8aab49540df905e4117b5e7db1a31e..7a72b564400d8421d5ebfe4dce1ac9eca979224d 100644 (file)
@@ -155,8 +155,6 @@ struct hal_data_8188e {
        u8      CurrentChannel;
        u8      nCur40MhzPrimeSC;/*  Control channel sub-carrier */
 
-       u16     BasicRateSet;
-
        u8      EEPROMRegulatory;
        u8      EEPROMThermalMeter;