projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa4d58d
)
mac80211: tx: delete a redundant if statement in ieee80211_check_fast_xmit()
author
Hangyu Hua
<hbh25y@gmail.com>
Wed, 13 Apr 2022 09:19:02 +0000
(17:19 +0800)
committer
Johannes Berg
<johannes.berg@intel.com>
Wed, 4 May 2022 20:49:38 +0000
(22:49 +0200)
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>
net/mac80211/tx.c
patch
|
blob
|
history
diff --git
a/net/mac80211/tx.c
b/net/mac80211/tx.c
index 13253eb39d093c382bf5f9c7a13482e6dae01e52..0e4efc08c762d26a1fa4a1bcaa9885f9d4edaf0b 100644
(file)
--- 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 */