]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
staging: rtl8723bs: fix logical continuations in xmit_linux.c
authorSajal Gupta <sajal2005gupta@gmail.com>
Tue, 24 Mar 2026 12:17:47 +0000 (17:47 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Mar 2026 08:33:29 +0000 (10:33 +0200)
Simplify the conditional by removing redundant boolean
comparisons and fixing the continuation line indentation.

Signed-off-by: Sajal Gupta <sajal2005gupta@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Link: https://patch.msgid.link/20260324121828.14675-1-sajal2005gupta@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/xmit_linux.c

index 0be3143fffe5a06cab679bb6f3db6d77008956b5..dc0b77f38b1aea57d9f2a1275d88e12615ea353a 100644 (file)
@@ -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)