Skip to contentSkip to conversation

staging: rtl8723au: core: Remove unnecessary functions

PATCH Superseded Amitoj Kaur Chawla 2 participants 3 messages Oct 27, 2015 Staging

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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
index a7c8b73..0637020 100644
@@ -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
maintainer
#1 lore raw
Quoted 32 lines · Amitoj Kaur Chawla

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 +0 -9
index a7c8b73..0637020 100644
@@ -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

#2 lore raw
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.

---
 drivers/staging/rtl8723au/core/rtw_ap.c | 28 ++++------------------------
 1 file changed, 4 insertions(+), 24 deletions(-)
drivers/staging/rtl8723au/core/rtw_ap.c +0 -9
index a7c8b73..0637020 100644
@@ -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