mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7915: remove dead code in mt7915_get_et_stats
Remove phy check in mt7915_get_et_stats since hw is received from mac80211 and it can't be NULL Signed-off-by: Lorenzo Bianconi <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
f1f505cbbb
commit
8c9d4b38d2
+1
-5
@@ -1241,11 +1241,7 @@ void mt7915_get_et_stats(struct ieee80211_hw *hw,
|
||||
|
||||
/* See mt7915_ampdu_stat_read_phy, etc */
|
||||
bool ext_phy = phy != &dev->phy;
|
||||
int i, n;
|
||||
int ei = 0;
|
||||
|
||||
if (!phy)
|
||||
return;
|
||||
int i, n, ei = 0;
|
||||
|
||||
data[ei++] = mib->tx_ampdu_cnt;
|
||||
data[ei++] = mib->tx_stop_q_empty_cnt;
|
||||
|
||||
Reference in New Issue
Block a user