Skip to contentSkip to conversation

mac80211: tx: delete a redundant if statement in ieee80211_check_fast_xmit()

PATCH New Hangyu Hua 1 participant 1 message Apr 13, 2022

Subsystems (3)
lore
Share & tools
lore

Hangyu Hua

author
#0 lore raw

PATCH 1/1 mac80211: tx: delete a redundant if statement in ieee80211_check_fast_xmit()

If statement is meaningless because the code will goto out regardless of whether fast_tx is NULL or not.

---
 net/mac80211/tx.c | 2 --
 1 file changed, 2 deletions(-)
net/mac80211/tx.c +0 -2
index b6b20f38de0e..0e53d9d60cd4 100644
@@ -3150,8 +3150,6 @@ void ieee80211_check_fast_xmit(struct sta_info *sta)
 
 	fast_tx = kmemdup(&build, sizeof(build), GFP_ATOMIC);
 	/* if the kmemdup fails, continue w/o fast_tx */
-	if (!fast_tx)
-		goto out;
 
  out:
 	/* we might have raced against another call to this function */
Signature · 1 line
2.25.1