Skip to content

Commit

Permalink
mt76: mt7915: remove dead code in mt7915_get_et_stats
Browse files Browse the repository at this point in the history
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 <lorenzo@kernel.org>
  • Loading branch information
LorenzoBianconi authored and nbd168 committed Oct 19, 2021
1 parent f1f505c commit 8c9d4b3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions mt7915/main.c
Expand Up @@ -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;
Expand Down

0 comments on commit 8c9d4b3

Please sign in to comment.