From: Rohan Tripathi <trohan2000@gmail.com>
To: gregkh@linuxfoundation.org
Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
Rohan Tripathi <trohan2000@gmail.com>
Subject: [PATCH v3 3/6] staging: rtl8723bs: remove dead code in rtw_ap.c
Date: Tue, 7 Oct 2025 05:13:00 -0400 [thread overview]
Message-ID: <20251007091303.491115-3-trohan2000@gmail.com> (raw)
In-Reply-To: <20251007091303.491115-1-trohan2000@gmail.com>
This patch removes a commented-out assignment to
psta->dot118021XPrivacy in rtw_ap.c. The comment indicates
that the statement is no longer needed, so keeping it adds
no value.
Removing this line (and the superfluous blank line that
remained with it) improves code readability and matches
kernel coding style.
This is a cleanup only. No functional changes.
Signed-off-by: Rohan Tripathi <trohan2000@gmail.com>
---
v3: move dead code removal into a separate patch
v2: previously only realigned the commented-out line
---
drivers/staging/rtl8723bs/core/rtw_ap.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_ap.c b/drivers/staging/rtl8723bs/core/rtw_ap.c
index 4bfae77a5fa4..2faa1e14a039 100644
--- a/drivers/staging/rtl8723bs/core/rtw_ap.c
+++ b/drivers/staging/rtl8723bs/core/rtw_ap.c
@@ -391,8 +391,6 @@ void update_bmc_sta(struct adapter *padapter)
memset((void *)&psta->sta_stats, 0, sizeof(struct stainfo_stats));
- /* psta->dot118021XPrivacy = _NO_PRIVACY_;//!!! remove it, because it has been set before this. */
-
/* prepare for add_RATid */
supportRateNum = rtw_get_rateset_len((u8 *)&pcur_network->supported_rates);
network_type = rtw_check_network_type((u8 *)&pcur_network->supported_rates,
--
2.50.1
next prev parent reply other threads:[~2025-10-07 9:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-07 9:12 [PATCH v3 1/6] staging: rtl8723bs: remove unnecessary blank lines in rtw_ap.c Rohan Tripathi
2025-10-07 9:12 ` [PATCH v3 2/6] staging: rtl8723bs: add missing blank line " Rohan Tripathi
2025-10-07 9:13 ` Rohan Tripathi [this message]
2025-10-07 9:13 ` [PATCH v3 4/6] staging: rtl8723bs: fix lines starting with '(' " Rohan Tripathi
2025-10-07 9:13 ` [PATCH v3 5/6] staging: rtl8723bs: add spaces around '+' operator " Rohan Tripathi
2025-10-07 9:13 ` [PATCH v3 6/6] staging: rtl8723bs: wrap long comments " Rohan Tripathi
2025-10-07 10:15 ` [PATCH v3 1/6] staging: rtl8723bs: remove unnecessary blank lines " 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=20251007091303.491115-3-trohan2000@gmail.com \
--to=trohan2000@gmail.com \
--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;
as well as URLs for NNTP newsgroup(s).