staging: r8188eu: HW_VAR_MEDIA_STATUS1 is never set
authorMartin Kaiser <martin@kaiser.cx>
Sat, 8 Jan 2022 12:49:57 +0000 (13:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jan 2022 15:18:15 +0000 (16:18 +0100)
The HW_VAR_MEDIA_STATUS1 hal variable is never set. Remove its define
and the code to set it.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220108124959.313215-11-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/usb_halinit.c
drivers/staging/r8188eu/include/hal_intf.h

index 38b88e6..21cb505 100644 (file)
@@ -1087,15 +1087,6 @@ void SetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
                        rtw_write8(Adapter, MSR, val8);
                }
                break;
-       case HW_VAR_MEDIA_STATUS1:
-               {
-                       u8 val8;
-
-                       val8 = rtw_read8(Adapter, MSR) & 0x03;
-                       val8 |= *((u8 *)val) << 2;
-                       rtw_write8(Adapter, MSR, val8);
-               }
-               break;
        case HW_VAR_SET_OPMODE:
                hw_var_set_opmode(Adapter, variable, val);
                break;
index 120b329..6728cb5 100644 (file)
@@ -10,7 +10,6 @@
 
 enum hw_variables {
        HW_VAR_MEDIA_STATUS,
-       HW_VAR_MEDIA_STATUS1,
        HW_VAR_SET_OPMODE,
        HW_VAR_MAC_ADDR,
        HW_VAR_BSSID,