[patch v2] staging: rtl8723bs: remove unused struct rtw_regulatory
From: deep
Date: Mon Apr 13 2026 - 11:29:33 EST
From: Kenet Jovan Sokoli <deep@xxxxxxxxxxxxxxxxxx>
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 dan.carpenter@xxxxxxxxxx
Signed-off-by: Kenet Jovan Sokoli <deep@xxxxxxxxxxxxxxxxxx>
---
drivers/staging/rtl8723bs/os_dep/wifi_regd.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8723bs/os_dep/wifi_regd.c b/drivers/staging/rtl8723bs/os_dep/wifi_regd.c
index c48a1e3ba4ac..3a43d0c8b142 100644
--- a/drivers/staging/rtl8723bs/os_dep/wifi_regd.c
+++ b/drivers/staging/rtl8723bs/os_dep/wifi_regd.c
@@ -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;
--
2.43.0