]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: rtl8723bs: remove dead code in rtw_ap.c
authorRohan Tripathi <trohan2000@gmail.com>
Tue, 7 Oct 2025 09:13:00 +0000 (05:13 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Oct 2025 07:09:28 +0000 (09:09 +0200)
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>
Link: https://lore.kernel.org/r/20251007091303.491115-3-trohan2000@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_ap.c

index 4bfae77a5fa4dce43e11f020536039f567d5fede..2faa1e14a03911eb074bd9645bb9cd713e8e867a 100644 (file)
@@ -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,