wifi: mac80211: tx: clarify conditions in if statement
authorJohannes Berg <johannes.berg@intel.com>
Mon, 28 Aug 2023 13:09:23 +0000 (15:09 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Sep 2023 09:27:18 +0000 (11:27 +0200)
This really just reformats the statement, but makes it
more readable.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c

index 7fe7280e8437458015a3a9addfb5ff42a51cfb4f..3a5b41c2ee3d18dd573ce2d429fed0b0c712c22b 100644 (file)
@@ -2855,9 +2855,10 @@ static struct sk_buff *ieee80211_build_hdr(struct ieee80211_sub_if_data *sdata,
                goto free;
        }
 
-       if (unlikely(!multicast && ((skb->sk &&
-                    skb_shinfo(skb)->tx_flags & SKBTX_WIFI_STATUS) ||
-                    ctrl_flags & IEEE80211_TX_CTL_REQ_TX_STATUS)))
+       if (unlikely(!multicast &&
+                    ((skb->sk &&
+                      skb_shinfo(skb)->tx_flags & SKBTX_WIFI_STATUS) ||
+                     ctrl_flags & IEEE80211_TX_CTL_REQ_TX_STATUS)))
                info_id = ieee80211_store_ack_skb(local, skb, &info_flags,
                                                  cookie);