Skip to contentSkip to conversation

staging: rtl8723bs: remove unused struct rtw_regulatory

PATCH Superseded [email protected] 1 participant 1 message Apr 13 Staging

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 staging: rtl8723bs: remove unused struct rtw_regulatory

From: Kenet Jovan Sokoli <[email protected]>

The struct rtw_regulatory is never actually used in the rtl8723bs driver. The functions that take it as a parameter are always passed NULL, and the functions themselves either ignore the parameter or perform no logic with it.

Following Dan Carpenter's suggestion, removed the unused struct definition, removed the unused parameters from the internal functions, and clean up the dead code.

Suggested by: Dan Carpenter [email protected]

---
 drivers/staging/rtl8723bs/os_dep/wifi_regd.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/staging/rtl8723bs/os_dep/wifi_regd.c +1 -3
index c48a1e3ba4ac..3a43d0c8b142 100644
@@ -97,9 +97,7 @@ static const struct ieee80211_regdomain *_rtw_regdomain_select(void)
 
 static void _rtw_regd_init_wiphy(struct wiphy *wiphy,
 				 void (*reg_notifier)(struct wiphy *wiphy,
-						      struct
-						      regulatory_request *
-						      request))
+						      struct regulatory_request *request))
 {
 	const struct ieee80211_regdomain *regd;
 
Signature · 1 line
2.43.0