提交 0969b963 编写于 作者: H Hangyu Hua 提交者: Johannes Berg

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: NHangyu Hua <hbh25y@gmail.com>
Link: https://lore.kernel.org/r/20220413091902.27438-1-hbh25y@gmail.comSigned-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 fa4d58da
...@@ -3150,8 +3150,6 @@ void ieee80211_check_fast_xmit(struct sta_info *sta) ...@@ -3150,8 +3150,6 @@ void ieee80211_check_fast_xmit(struct sta_info *sta)
fast_tx = kmemdup(&build, sizeof(build), GFP_ATOMIC); fast_tx = kmemdup(&build, sizeof(build), GFP_ATOMIC);
/* if the kmemdup fails, continue w/o fast_tx */ /* if the kmemdup fails, continue w/o fast_tx */
if (!fast_tx)
goto out;
out: out:
/* we might have raced against another call to this function */ /* we might have raced against another call to this function */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册