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:
Lorenzo Bianconi
2021-10-19 11:23:49 +02:00
committed by Felix Fietkau
parent f1f505cbbb
commit 8c9d4b38d2
+1 -5
View File
@@ -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;