staging: r8188eu: remove HW_VAR_BASIC_RATE from GetHwReg8188EU()
authorMichael Straube <straube.linux@gmail.com>
Fri, 7 Jan 2022 21:50:28 +0000 (22:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jan 2022 15:14:42 +0000 (16:14 +0100)
GetHwReg8188EU() is never called with HW_VAR_BASIC_RATE. Remove that
case from the function.

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

index fc62019143ba4c8dd07d6125a6a7058cab4b1324..306f3b4ecc2727618d3242681ed9860c21a5dae9 100644 (file)
@@ -1594,9 +1594,6 @@ void GetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
        struct odm_dm_struct *podmpriv = &haldata->odmpriv;
 
        switch (variable) {
-       case HW_VAR_BASIC_RATE:
-               *((u16 *)(val)) = haldata->BasicRateSet;
-               fallthrough;
        case HW_VAR_TXPAUSE:
                val[0] = rtw_read8(Adapter, REG_TXPAUSE);
                break;