staging: rtl8188eu: remove HW_VAR_MEDIA_STATUS1
The "HAL layer variable" HW_VAR_MEDIA_STATUS1 is not used in this driver. Remove its define and the code for setting a value. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20210725155902.32433-2-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2d9f8c5ae6
commit
20a55e6c70
|
@ -1133,15 +1133,6 @@ void rtw_hal_set_hwreg(struct adapter *Adapter, u8 variable, u8 *val)
|
|||
usb_write8(Adapter, MSR, val8);
|
||||
}
|
||||
break;
|
||||
case HW_VAR_MEDIA_STATUS1:
|
||||
{
|
||||
u8 val8;
|
||||
|
||||
val8 = usb_read8(Adapter, MSR) & 0x03;
|
||||
val8 |= *((u8 *)val) << 2;
|
||||
usb_write8(Adapter, MSR, val8);
|
||||
}
|
||||
break;
|
||||
case HW_VAR_SET_OPMODE:
|
||||
hw_var_set_opmode(Adapter, variable, val);
|
||||
break;
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
|
||||
enum hw_variables {
|
||||
HW_VAR_MEDIA_STATUS,
|
||||
HW_VAR_MEDIA_STATUS1,
|
||||
HW_VAR_SET_OPMODE,
|
||||
HW_VAR_MAC_ADDR,
|
||||
HW_VAR_BSSID,
|
||||
|
|
Loading…
Reference in New Issue