[PATCH v5 6/8] staging: rtl8723bs: rtw_mlme: remove dead commented-out code

Salman Alghamdi
2026-04-28T12:18:46Z

Remove commented-out code and its associated orphaned comments.

Signed-off-by: Salman Alghamdi <me@cipherat.com>
---
drivers/staging/rtl8723bs/core/rtw_mlme.c | 19 +------------------
1 file changed, 1 insertion(+), 18 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c
index c7609f1a90f6..df3b31a7b2b2 100644
--- a/drivers/staging/rtl8723bs/core/rtw_mlme.c
+++ b/drivers/staging/rtl8723bs/core/rtw_mlme.c
@@ -750,9 +750,6 @@ void rtw_surveydone_event_callback(struct adapter *adapter, u8 *pbuf)
u8 *pibss = regs->dev_network.mac_address;
u8 ret = _SUCCESS;

- /* pmlmepriv->fw_state ^= _FW_UNDER_SURVEY;
- * because don't set assoc_timer
- */
_clr_fwstate_(pmlmepriv, _FW_UNDER_SURVEY);

memcpy(&pdev_network->ssid, &pmlmepriv->assoc_ssid,
@@ -1707,14 +1704,8 @@ void rtw_dynamic_check_timer_handler(struct adapter *adapter)
linked_status_chk(adapter);

should_enter_ps = traffic_status_watchdog(adapter, true);
- if (should_enter_ps) {
- /* rtw_lps_ctrl_wk_cmd(adapter, LPS_CTRL_ENTER, 1); */
+ if (should_enter_ps)
rtw_hal_dm_watchdog_in_lps(adapter);
- } else {
- /* call rtw_lps_ctrl_wk_cmd(padapter, LPS_CTRL_LEAVE, 1)
- * in traffic_status_watchdog()
- */
- }

} else {
rtw_dynamic_chk_wk_cmd(adapter);
@@ -2249,19 +2240,11 @@ void rtw_update_registrypriv_dev_network(struct adapter *adapter)
/* 1. Supported rates */
/* 2. IE */

- /* rtw_set_supported_rate(pdev_network->supported_rates, pregistrypriv->wireless_mode);
- * will be called in rtw_generate_ie
- */
sz = rtw_generate_ie(pregistrypriv);

pdev_network->ie_length = sz;

pdev_network->length = get_wlan_bssid_ex_sz((struct wlan_bssid_ex *)pdev_network);
-
- /* notes: translate ie_length & length after assign the
- * length to cmdsz in createbss_cmd();
- */
- /* pdev_network->ie_length = cpu_to_le32(sz); */
}

/* the function is at passive_level */
--
2.54.0