summaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorHangyu Hua <hbh25y@gmail.com>2022-04-13 11:19:02 +0200
committerJohannes Berg <johannes.berg@intel.com>2022-05-04 22:49:38 +0200
commit0969b96352d69c25855d90fd6d74bd619f1f1f0c (patch)
tree37372804bf9d342afa9d243680f7f6135c6cac49 /net/mac80211
parentmac80211: consider Order bit to fill CCMP AAD (diff)
downloadlinux-0969b96352d69c25855d90fd6d74bd619f1f1f0c.tar.xz
linux-0969b96352d69c25855d90fd6d74bd619f1f1f0c.zip
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. Signed-off-by: Hangyu Hua <hbh25y@gmail.com> Link: https://lore.kernel.org/r/20220413091902.27438-1-hbh25y@gmail.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/tx.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 13253eb39d09..0e4efc08c762 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -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 */