staging: rtl8723bs: remove unused macros from ioctl_linux.c
PATCH 1/1 staging: rtl8723bs: remove unused macros from ioctl_linux.c
These macros are not used in the driver, remove them. Found with GCC -Wunused-macros.
Signed-off-by Michael Straube <[email protected]>
--- drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 14 -------------- 1 file changed, 14 deletions(-)
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c +0 -14
@@ -15,20 +15,6 @@#define RTL_IOCTL_WPA_SUPPLICANT (SIOCIWFIRSTPRIV+30) -#define SCAN_ITEM_SIZE 768 -#define MAX_CUSTOM_LEN 64 -#define RATE_COUNT 4 - -/* combo scan */ -#define WEXT_CSCAN_HEADER "CSCAN S\x01\x00\x00S\x00" -#define WEXT_CSCAN_HEADER_SIZE 12 -#define WEXT_CSCAN_SSID_SECTION 'S' -#define WEXT_CSCAN_CHANNEL_SECTION 'C' -#define WEXT_CSCAN_ACTV_DWELL_SECTION 'A' -#define WEXT_CSCAN_PASV_DWELL_SECTION 'P' -#define WEXT_CSCAN_HOME_DWELL_SECTION 'H' -#define WEXT_CSCAN_TYPE_SECTION 'T' -static int wpa_set_auth_algs (struct net_device *dev,u32 value) {struct adapter *padapter =rtw_netdev_priv (dev);
Signature · 1 line
2.33.0
Hi,
Quoted 4 lines · Michael Straube
These macros are not used in the driver, remove them. Found with GCC -Wunused-macros.
Signed-off-by Michael Straube <[email protected]>
Thanks, patch looks good to me:
Reviewed-by Hans de Goede <[email protected]>
Regards,
Hans
Quoted 30 lines
--- drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 14 -------------- 1 file changed, 14 deletions(-)drivers/staging/rtl8723bs/os_dep/ioctl_linux.c +0
-14@@ -15,20 +15,6 @@#define RTL_IOCTL_WPA_SUPPLICANT (SIOCIWFIRSTPRIV+30) -#define SCAN_ITEM_SIZE 768 -#define MAX_CUSTOM_LEN 64 -#define RATE_COUNT 4 - -/* combo scan */ -#define WEXT_CSCAN_HEADER "CSCAN S\x01\x00\x00S\x00" -#define WEXT_CSCAN_HEADER_SIZE 12 -#define WEXT_CSCAN_SSID_SECTION 'S' -#define WEXT_CSCAN_CHANNEL_SECTION 'C' -#define WEXT_CSCAN_ACTV_DWELL_SECTION 'A' -#define WEXT_CSCAN_PASV_DWELL_SECTION 'P' -#define WEXT_CSCAN_HOME_DWELL_SECTION 'H' -#define WEXT_CSCAN_TYPE_SECTION 'T' -static int wpa_set_auth_algs (struct net_device *dev,u32 value) {struct adapter *padapter =rtw_netdev_priv (dev);
Hi,
Quoted 12 lines · Hans de Goede
Hi,
Quoted 4 lines · Michael Straube
These macros are not used in the driver, remove them. Found with GCC -Wunused-macros.
Signed-off-by Michael Straube <[email protected]>Thanks, patch looks good to me:
Reviewed-by Hans de Goede <[email protected]>
Thanks for reviewing.
Regards,
Michael