staging: rtl8723au: core: Remove unnecessary functions
PATCH 1/1 staging: rtl8723au: core: Remove unnecessary functions
Remove functions that can be replaced by a single line of code and are unnecessary.
--- drivers/staging/rtl8723au/core/rtw_ap.c | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-)
drivers/staging/rtl8723au/core/rtw_ap.c +4 -24
@@ -1135,11 +1135,6 @@ int rtw_acl_remove_sta23a(struct rtw_adapter *padapter, u8 *addr)return 0 ; } -static void update_bcn_fixed_ie (struct rtw_adapter *padapter) -{ -DBG_8723A ("%s\n" , __func__); -} -static void update_bcn_erpinfo_ie (struct rtw_adapter *padapter) {struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
@@ -1173,21 +1168,6 @@ static void update_bcn_erpinfo_ie(struct rtw_adapter *padapter) } } -static void update_bcn_htcap_ie (struct rtw_adapter *padapter) -{ -DBG_8723A ("%s\n" , __func__); -} - -static void update_bcn_htinfo_ie (struct rtw_adapter *padapter) -{ -DBG_8723A ("%s\n" , __func__); -} - -static void update_bcn_rsn_ie (struct rtw_adapter *padapter) -{ -DBG_8723A ("%s\n" , __func__); -} -static void update_bcn_wpa_ie (struct rtw_adapter *padapter) {DBG_8723A ("%s\n" , __func__);
@@ -1246,7 +1226,7 @@ void update_beacon23a(struct rtw_adapter *padapter, u8 ie_id, u8 *oui, u8 tx)switch (ie_id) {case 0xFF :/* 8: TimeStamp, 2: Beacon Interval 2:Capability */ -update_bcn_fixed_ie (padapter); +DBG_8723A ("%s\n" , __func__);break ;case WLAN_EID_TIM :
@@ -1258,15 +1238,15 @@ void update_beacon23a(struct rtw_adapter *padapter, u8 ie_id, u8 *oui, u8 tx)break ;case WLAN_EID_HT_CAPABILITY : -update_bcn_htcap_ie (padapter); +DBG_8723A ("%s\n" , __func__);break ;case WLAN_EID_RSN : -update_bcn_rsn_ie (padapter); +DBG_8723A ("%s\n" , __func__);break ;case WLAN_EID_HT_OPERATION : -update_bcn_htinfo_ie (padapter); +DBG_8723A ("%s\n" , __func__);break ;case WLAN_EID_VENDOR_SPECIFIC :
Signature · 1 line
1.9.1
Greg KH
maintainerQuoted 32 lines · Amitoj Kaur Chawla
Remove functions that can be replaced by a single line of code and are unnecessary.
Signed-off-by Amitoj Kaur Chawla <[email protected]>--- drivers/staging/rtl8723au/core/rtw_ap.c | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-)drivers/staging/rtl8723au/core/rtw_ap.c +0
-9@@ -1135,11 +1135,6 @@ int rtw_acl_remove_sta23a(struct rtw_adapter *padapter, u8 *addr)return 0 ; } -static void update_bcn_fixed_ie (struct rtw_adapter *padapter) -{ -DBG_8723A ("%s\n" , __func__); -} -static void update_bcn_erpinfo_ie (struct rtw_adapter *padapter) {struct mlme_priv *pmlmepriv = &padapter->mlmepriv;@@ -1173,21 +1168,6 @@ static void update_bcn_erpinfo_ie(struct rtw_adapter *padapter) } } -static void update_bcn_htcap_ie (struct rtw_adapter *padapter) -{ -DBG_8723A ("%s\n" , __func__); -}
drivers/staging/rtl8723au/core/rtw_ap.c static void update_bcn_erpinfo_ie(struct rtw_adapter *padapter) · line 1189
Quoted 10 lines
drivers/staging/rtl8723au/core/rtw_ap.c +0
-10- -static void update_bcn_htinfo_ie (struct rtw_adapter *padapter) -{ -DBG_8723A ("%s\n" , __func__); -} - -static void update_bcn_rsn_ie (struct rtw_adapter *padapter) -{ -DBG_8723A ("%s\n" , __func__); -}
These look like functions that someone hasn't implemented yet, just delete them, and the callers as well, don't move the debug message into the caller site, that doesn't make much sense.
thanks,
greg k-h
Quoted 48 lines · Greg KH
Quoted 32 lines · Amitoj Kaur Chawla
Remove functions that can be replaced by a single line of code and are unnecessary.
Signed-off-by Amitoj Kaur Chawla <[email protected]>--- drivers/staging/rtl8723au/core/rtw_ap.c | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-)drivers/staging/rtl8723au/core/rtw_ap.c +0
-9@@ -1135,11 +1135,6 @@ int rtw_acl_remove_sta23a(struct rtw_adapter *padapter, u8 *addr)return 0 ; } -static void update_bcn_fixed_ie (struct rtw_adapter *padapter) -{ -DBG_8723A ("%s\n" , __func__); -} -static void update_bcn_erpinfo_ie (struct rtw_adapter *padapter) {struct mlme_priv *pmlmepriv = &padapter->mlmepriv;@@ -1173,21 +1168,6 @@ static void update_bcn_erpinfo_ie(struct rtw_adapter *padapter) } } -static void update_bcn_htcap_ie (struct rtw_adapter *padapter) -{ -DBG_8723A ("%s\n" , __func__); -}drivers/staging/rtl8723au/core/rtw_ap.c static void update_bcn_erpinfo_ie(struct rtw_adapter *padapter) · line 1189
Quoted 10 lines
drivers/staging/rtl8723au/core/rtw_ap.c +0
-10- -static void update_bcn_htinfo_ie (struct rtw_adapter *padapter) -{ -DBG_8723A ("%s\n" , __func__); -} - -static void update_bcn_rsn_ie (struct rtw_adapter *padapter) -{ -DBG_8723A ("%s\n" , __func__); -}These look like functions that someone hasn't implemented yet, just delete them, and the callers as well, don't move the debug message into the caller site, that doesn't make much sense.
Quoted 3 lines
thanks,
greg k-h
Okay! Working on sending a v2.
Thanks,
Signature · 1 line
Amitoj