diff options
author | Alexander Wetzel <alexander@wetzel-home.de> | 2022-11-07 17:13:28 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-12-01 15:09:10 +0100 |
commit | 9445096319206814e462b904915b645c4f2bf514 (patch) | |
tree | 269e91720bb714ba51adfa363b6ecbf215cc54a8 /net/mac80211/tx.c | |
parent | 833a9fd28c9b7ccb39a334721379e992dc1c0c89 (diff) |
wifi: mac80211: Drop not needed check for NULL
ieee80211_get_txq() can only be called with vif != NULL.
Remove not needed NULL test in function.
Signed-off-by: Alexander Wetzel <alexander@wetzel-home.de>
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Link: https://lore.kernel.org/r/20221107161328.2883-1-alexander@wetzel-home.de
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 165ac0711d71..3ed5ca4a2bae 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -1343,7 +1343,7 @@ static struct txq_info *ieee80211_get_txq(struct ieee80211_local *local, return NULL; txq = sta->sta.txq[tid]; - } else if (vif) { + } else { txq = vif->txq; } |