Skip to content

Commit d6696ce

Browse files
sajal90gregkh
authored andcommitted
staging: rtl8723bs: fix logical continuations in xmit_linux.c
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>
1 parent 75a1621 commit d6696ce

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

drivers/staging/rtl8723bs/os_dep/xmit_linux.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,9 @@ void _rtw_xmit_entry(struct sk_buff *pkt, struct net_device *pnetdev)
193193

194194
rtw_check_xmit_resource(padapter, pkt);
195195

196-
if (!rtw_mc2u_disable
197-
&& check_fwstate(pmlmepriv, WIFI_AP_STATE) == true
198-
&& (IP_MCAST_MAC(pkt->data)
199-
|| ICMPV6_MCAST_MAC(pkt->data)
200-
)
201-
&& padapter->registrypriv.wifi_spec == 0) {
196+
if (!rtw_mc2u_disable && check_fwstate(pmlmepriv, WIFI_AP_STATE) &&
197+
(IP_MCAST_MAC(pkt->data) || ICMPV6_MCAST_MAC(pkt->data)) &&
198+
!padapter->registrypriv.wifi_spec) {
202199
if (pxmitpriv->free_xmitframe_cnt > (NR_XMITFRAME / 4)) {
203200
res = rtw_mlcst2unicst(padapter, pkt);
204201
if (res)

0 commit comments

Comments
 (0)