public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
From: deep@crimson.net.eu.org
To: Dan Carpenter <dan.carpenter@linaro.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
	Kenet Jovan Sokoli <deep@crimson.net.eu.org>
Subject: [patch v2] staging: rtl8723bs: remove unused struct rtw_regulatory
Date: Mon, 13 Apr 2026 17:24:45 +0200	[thread overview]
Message-ID: <20260413152445.1333237-1-deep@crimson.net.eu.org> (raw)

From: Kenet Jovan Sokoli <deep@crimson.net.eu.org>

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@linaro.org
Signed-off-by: Kenet Jovan Sokoli <deep@crimson.net.eu.org>
---
 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


             reply	other threads:[~2026-04-13 15:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-13 15:24 deep [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-04-13 15:44 [PATCH v2] staging: rtl8723bs: remove unused struct rtw_regulatory deep
2026-04-14  5:55 ` Dan Carpenter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260413152445.1333237-1-deep@crimson.net.eu.org \
    --to=deep@crimson.net.eu.org \
    --cc=dan.carpenter@linaro.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox