[PATCH v2] staging: rtl8723bs: fix logical continuations in xmit_linux.c

Sajal Gupta posted 1 patch 1 week, 2 days ago
drivers/staging/rtl8723bs/os_dep/xmit_linux.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
[PATCH v2] staging: rtl8723bs: fix logical continuations in xmit_linux.c
Posted by Sajal Gupta 1 week, 2 days ago
Simplify the conditional by removing redundant boolean
comparisons and fixing the continuation line indentation.

Signed-off-by: Sajal Gupta <sajal2005gupta@gmail.com>
---
Changes in v2:
- compact the condition
- drop == true and == 0 checks
- fix tab alignment

 drivers/staging/rtl8723bs/os_dep/xmit_linux.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/xmit_linux.c b/drivers/staging/rtl8723bs/os_dep/xmit_linux.c
index 0be3143fffe5..dc0b77f38b1a 100644
--- a/drivers/staging/rtl8723bs/os_dep/xmit_linux.c
+++ b/drivers/staging/rtl8723bs/os_dep/xmit_linux.c
@@ -193,12 +193,9 @@ void _rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev)

 	rtw_check_xmit_resource(padapter, pkt);

-	if (!rtw_mc2u_disable
-		&& check_fwstate(pmlmepriv, WIFI_AP_STATE) == true
-		&& (IP_MCAST_MAC(pkt->data)
-			|| ICMPV6_MCAST_MAC(pkt->data)
-			)
-		&& padapter->registrypriv.wifi_spec == 0) {
+	if (!rtw_mc2u_disable && check_fwstate(pmlmepriv, WIFI_AP_STATE) &&
+	    (IP_MCAST_MAC(pkt->data) || ICMPV6_MCAST_MAC(pkt->data)) &&
+	    !padapter->registrypriv.wifi_spec) {
 		if (pxmitpriv->free_xmitframe_cnt > (NR_XMITFRAME / 4)) {
 			res = rtw_mlcst2unicst(padapter, pkt);
 			if (res)
--
2.53.0
Re: [PATCH v2] staging: rtl8723bs: fix logical continuations in xmit_linux.c
Posted by Andy Shevchenko 1 week, 2 days ago
On Tue, Mar 24, 2026 at 05:47:47PM +0530, Sajal Gupta wrote:
> Simplify the conditional by removing redundant boolean
> comparisons and fixing the continuation line indentation.

In case maintainers are happy to take,
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>

-- 
With Best Regards,
Andy Shevchenko