staging: r8188eu: remove HW_VAR_CURRENT_ANTENNA from GetHwReg8188EU()
authorMichael Straube <straube.linux@gmail.com>
Fri, 7 Jan 2022 21:50:30 +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_CURRENT_ANTENNA. Remove
that case from the function.

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

index 1900b34c0b6f60bb882fbb1850d6d3b58fbc0e45..12d4f92749e646c1c8a4848967e744055abcc4e2 100644 (file)
@@ -1616,9 +1616,6 @@ void GetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
                        }
                }
                break;
-       case HW_VAR_CURRENT_ANTENNA:
-               val[0] = haldata->CurAntenna;
-               break;
        case HW_VAR_EFUSE_BYTES: /*  To get EFUE total used bytes, added by Roger, 2008.12.22. */
                *((u16 *)(val)) = haldata->EfuseUsedBytes;
                break;
index 77149eda7edf182ef01bb4ddc7d50d569b15b1d1..37c2d2b82ea80e4ea4e4b68ef9778906f212221a 100644 (file)
@@ -55,7 +55,6 @@ enum hw_variables {
        HW_VAR_INITIAL_GAIN,
        HW_VAR_BT_SET_COEXIST,
        HW_VAR_BT_ISSUE_DELBA,
-       HW_VAR_CURRENT_ANTENNA,
        HW_VAR_ANTENNA_DIVERSITY_LINK,
        HW_VAR_ANTENNA_DIVERSITY_SELECT,
        HW_VAR_SWITCH_EPHY_WoWLAN,