staging: r8188eu: HardwareType is write-only
authorMartin Kaiser <martin@kaiser.cx>
Tue, 5 Oct 2021 20:08:18 +0000 (22:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Oct 2021 12:55:28 +0000 (14:55 +0200)
HardwareType in struct adapter is never read, it can be removed.

Acked-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20211005200821.19783-6-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/usb_ops_linux.c
drivers/staging/r8188eu/include/drv_types.h
drivers/staging/r8188eu/include/hal_intf.h

index c15a75513c8c1293aec5fddaa8f74e97d25e5d1e..9544300fab6573ae741a47426638151fc6dca706 100644 (file)
@@ -562,6 +562,5 @@ void rtl8188eu_xmit_tasklet(unsigned long priv)
 void rtl8188eu_set_hw_type(struct adapter *adapt)
 {
        adapt->chip_type = RTL8188E;
-       adapt->HardwareType = HARDWARE_TYPE_RTL8188EU;
        DBG_88E("CHIP TYPE: RTL8188E\n");
 }
index 6d63429d06c601c4a907d56daeb07f14c9ad0429..9fa561ad340ba642fcd0ba09c5d4edb2c6731cfe 100644 (file)
@@ -206,7 +206,6 @@ struct adapter {
        int     pid[3];/* process id from UI, 0:wps, 1:hostapd, 2:dhcpcd */
        int     bDongle;/* build-in module or external dongle */
        u16     chip_type;
-       u16     HardwareType;
        u16     interface_type;/* USB,SDIO,SPI,PCI */
 
        struct dvobj_priv *dvobj;
index 29ca90a86844d289fbcaf735d00dedeb4675a8fd..ee8e67dafe7c0c32744f6205e6ff1c8bbd513e68 100644 (file)
@@ -137,8 +137,6 @@ struct hal_ops {
 #define RF_CHANGE_BY_HW                BIT(30)
 #define RF_CHANGE_BY_SW                BIT(31)
 
-#define HARDWARE_TYPE_RTL8188EU 17
-
 #define is_boot_from_eeprom(adapter) (adapter->eeprompriv.EepromOrEfuse)
 
 void rtl8188eu_set_hal_ops(struct adapter *padapter);