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

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220107215033.12257-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/hal_intf.h

index 306f3b4..1900b34 100644 (file)
@@ -1140,9 +1140,6 @@ void SetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
                        rtw_write8(Adapter, REG_INIRTS_RATE_SEL, RateIndex);
                }
                break;
-       case HW_VAR_TXPAUSE:
-               rtw_write8(Adapter, REG_TXPAUSE, *((u8 *)val));
-               break;
        case HW_VAR_BCN_FUNC:
                hw_var_set_bcn_func(Adapter, variable, val);
                break;
@@ -1594,9 +1591,6 @@ void GetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
        struct odm_dm_struct *podmpriv = &haldata->odmpriv;
 
        switch (variable) {
-       case HW_VAR_TXPAUSE:
-               val[0] = rtw_read8(Adapter, REG_TXPAUSE);
-               break;
        case HW_VAR_BCN_VALID:
                /* BCN_VALID, BIT(16) of REG_TDECTRL = BIT(0) of REG_TDECTRL+2 */
                val[0] = (BIT(0) & rtw_read8(Adapter, REG_TDECTRL + 2)) ? true : false;
index b4a7e0c..77149ed 100644 (file)
@@ -16,7 +16,6 @@ enum hw_variables {
        HW_VAR_BSSID,
        HW_VAR_INIT_RTS_RATE,
        HW_VAR_BASIC_RATE,
-       HW_VAR_TXPAUSE,
        HW_VAR_BCN_FUNC,
        HW_VAR_CORRECT_TSF,
        HW_VAR_CHECK_BSSID,