mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
staging: r8188eu: HardwareType is write-only
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
fdfd6fabb5
commit
d3e45102f9
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user