Fix smatch warnings and errors in the rtlwifi family of drivers. V2 addresses comments by David Laight and Sergei Shtylyov. V3 addresses further comments by David, Sergei, and Kalle Valo. The dead code is removed, and the variable is left in the struct. Signed-off-by: Larry Finger <Larry.Finger@xxxxxxxxxxxx> --- Larry Finger (8): rtlwifi: rtl8192du: Fix smatch errors in /rtl8192de/dm.c rtlwifi: rtl8192de: Fix smatch warnings in rtl8192de/hw.c rtlwifi: rtl8192cu: Fix smatch warning in rtl8192cu/trx.c rtlwifi: rtl8192_common: Fix smatch errors and warnings in rtl8192c/dm_common.c rtlwifi: Fix smatch warning in pci.c rtlwifi: Fix smatch warnings in usb.c rtlwifi: rtl8188ee: Fix smatch warning in rtl8188ee/hw.c rtlwifi: Remove all remaining references to variable 'noise' in rtl_stats struct drivers/net/wireless/rtlwifi/pci.c | 1 - drivers/net/wireless/rtlwifi/rtl8188ee/hw.c | 1 + drivers/net/wireless/rtlwifi/rtl8188ee/trx.c | 1 - drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c | 4 +++- drivers/net/wireless/rtlwifi/rtl8192ce/trx.c | 1 - drivers/net/wireless/rtlwifi/rtl8192cu/trx.c | 2 -- drivers/net/wireless/rtlwifi/rtl8192de/dm.c | 8 ++++++-- drivers/net/wireless/rtlwifi/rtl8192de/hw.c | 2 ++ drivers/net/wireless/rtlwifi/rtl8192de/trx.c | 1 - drivers/net/wireless/rtlwifi/rtl8192se/trx.c | 1 - drivers/net/wireless/rtlwifi/rtl8723ae/trx.c | 1 - drivers/net/wireless/rtlwifi/usb.c | 6 ++++-- drivers/net/wireless/rtlwifi/wifi.h | 1 - 13 files changed, 16 insertions(+), 14 deletions(-) -- 1.8.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html