staging: rtl8188eu: remove unused parameters from rtw_check_network_type
authorMichael Straube <straube.linux@gmail.com>
Mon, 13 Jan 2020 21:29:39 +0000 (22:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jan 2020 13:56:36 +0000 (14:56 +0100)
Parameters 'ratelen' and 'channel' of function rtw_check_network_type are
unused, remove them. Reduces object file size by 62 bytes.

  text    data     bss     dec     hex filename
398525   12896    4688  416109   6596d drivers/staging/rtl8188eu/r8188eu.o
398463   12896    4688  416047   6592f drivers/staging/rtl8188eu/r8188eu.o

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20200113212939.9738-1-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_ap.c
drivers/staging/rtl8188eu/core/rtw_ieee80211.c
drivers/staging/rtl8188eu/include/ieee80211.h

index 88e42cc1d8377dfef17014223eebdb4886d8bea7..93283c7deec43f667613deef50c39a0462ade8b8 100644 (file)
@@ -429,7 +429,7 @@ static void update_bmc_sta(struct adapter *padapter)
 
                /* prepare for add_RATid */
                supportRateNum = rtw_get_rateset_len((u8 *)&pcur_network->SupportedRates);
-               network_type = rtw_check_network_type((u8 *)&pcur_network->SupportedRates, supportRateNum, 1);
+               network_type = rtw_check_network_type((u8 *)&pcur_network->SupportedRates);
 
                memcpy(psta->bssrateset, &pcur_network->SupportedRates, supportRateNum);
                psta->bssratelen = supportRateNum;
@@ -802,7 +802,7 @@ int rtw_check_beacon_data(struct adapter *padapter, u8 *pbuf,  int len)
                supportRateNum += ie_len;
        }
 
-       network_type = rtw_check_network_type(supportRate, supportRateNum, channel);
+       network_type = rtw_check_network_type(supportRate);
 
        rtw_set_supported_rate(pbss_network->SupportedRates, network_type);
 
index cc1b5438c04cf8d5d5e611d732203cb660b72142..1344d369e05d4a28ebcfd59b0b2f1674ae41121d 100644 (file)
@@ -98,7 +98,7 @@ bool rtw_is_cckratesonly_included(u8 *rate)
        return true;
 }
 
-int rtw_check_network_type(unsigned char *rate, int ratelen, int channel)
+int rtw_check_network_type(unsigned char *rate)
 {
        /*  could be pure B, pure G, or B/G */
        if (rtw_is_cckratesonly_included(rate))
index d569fe5ed8e6b65d9e5c7f2ad7669a5ec7ada5b2..75f0ebe0faf56afecc824495b9f5fea63a8470e2 100644 (file)
@@ -765,7 +765,7 @@ bool rtw_is_cckrates_included(u8 *rate);
 
 bool rtw_is_cckratesonly_included(u8 *rate);
 
-int rtw_check_network_type(unsigned char *rate, int ratelen, int channel);
+int rtw_check_network_type(unsigned char *rate);
 
 void rtw_get_bcn_info(struct wlan_network *pnetwork);