staging: rtl8723bs: remove unused struct rtw_regulatory
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]
Signed-off-by Kenet Jovan Sokoli <[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
@@ -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