]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: rtl8723bs: remove stale commented code
authorKhushal Chitturi <khushalchitturi@gmail.com>
Thu, 12 Feb 2026 14:21:28 +0000 (19:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Feb 2026 15:19:19 +0000 (16:19 +0100)
Drop unused commented code left from older versions

Signed-off-by: Khushal Chitturi <khushalchitturi@gmail.com>
Link: https://patch.msgid.link/20260212142131.28131-5-khushalchitturi@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_cmd.c
drivers/staging/rtl8723bs/core/rtw_mlme.c
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
drivers/staging/rtl8723bs/include/rtw_mlme.h
drivers/staging/rtl8723bs/os_dep/os_intfs.c

index e35b3cca584cdfd4f39696bd78f02b5aee634883..22eb6fa475b9c752603ca62c5423c05fd8a467d2 100644 (file)
@@ -1178,7 +1178,7 @@ u8 traffic_status_watchdog(struct adapter *padapter, u8 from_timer)
 
                                pmlmepriv->link_detect_info.traffic_transition_count++;
 
-                               if (pmlmepriv->link_detect_info.traffic_transition_count > 30/*TrafficTransitionLevel*/)
+                               if (pmlmepriv->link_detect_info.traffic_transition_count > 30)
                                        pmlmepriv->link_detect_info.traffic_transition_count = 30;
                        }
                } else {
index 3e266f68cbfd8133f0a1535a5b2275ab0b87e731..a3d957d126de7508ccca42f20647a306d9f1c925 100644 (file)
@@ -2504,7 +2504,6 @@ void rtw_issue_addbareq_cmd(struct adapter *padapter, struct xmit_frame *pxmitfr
        struct pkt_attrib *pattrib = &pxmitframe->attrib;
        s32 bmcst = is_multicast_ether_addr(pattrib->ra);
 
-       /* if (bmcst || (padapter->mlmepriv.link_detect_info.tx_busy_traffic == false)) */
        if (bmcst || (padapter->mlmepriv.link_detect_info.num_tx_ok_in_period < 100))
                return;
 
index eb530c4316e06eb2e6b74f4b36d2079eb7140dbb..2f2cae6f2edfc30e88e59602379c546691b2bb57 100644 (file)
@@ -4758,7 +4758,6 @@ static void rtw_mlmeext_disconnect(struct adapter *padapter)
 
        timer_delete_sync(&pmlmeext->link_timer);
 
-       /* pmlmepriv->link_detect_info.TrafficBusyState = false; */
        pmlmepriv->link_detect_info.traffic_transition_count = 0;
        pmlmepriv->link_detect_info.low_power_transition_count = 0;
 
index 15657de5475e36483b2383774a829f90e2ee4c79..666e241704d99aad72c62e05471b179e9ee64d73 100644 (file)
@@ -206,7 +206,7 @@ void traffic_check_for_leave_lps(struct adapter *padapter, u8 tx, u32 tx_packets
                }
 
        } else { /*  from rx path */
-               if (pmlmepriv->link_detect_info.num_rx_unicast_ok_in_period > 4/*2*/) {
+               if (pmlmepriv->link_detect_info.num_rx_unicast_ok_in_period > 4) {
                        if (adapter_to_pwrctl(padapter)->bLeisurePs
                            && (adapter_to_pwrctl(padapter)->pwr_mode != PS_MODE_ACTIVE)
                            && !(hal_btcoex_IsBtControlLps(padapter)))
index 66d522006dfb8a99aa017823fa55d2a68c232c0f..65a9e4e9df559626d7f94411c85b879fc4a66e3b 100644 (file)
@@ -102,7 +102,6 @@ struct rt_link_detect_t {
        bool                    higher_busy_traffic; /*  For interrupt migration purpose. */
        bool                    higher_busy_rx_traffic; /*  We may disable Tx interrupt according as Rx traffic. */
        bool                    higher_busy_tx_traffic; /*  We may disable Tx interrupt according as Tx traffic. */
-       /* u8 TrafficBusyState; */
        u8 traffic_transition_count;
        u32 low_power_transition_count;
 };
index b42a8ce2835a12b21ea471acec9cd1093ef119c6..f2d64b05debb758856dda3a78437b0fe018de8a0 100644 (file)
@@ -620,7 +620,6 @@ void rtw_reset_drv_sw(struct adapter *padapter)
 
        pmlmepriv->link_detect_info.busy_traffic = false;
 
-       /* pmlmepriv->link_detect_info.TrafficBusyState = false; */
        pmlmepriv->link_detect_info.traffic_transition_count = 0;
        pmlmepriv->link_detect_info.low_power_transition_count = 0;