diff mbox series

mt76: mt7915: remove dead code in mt7915_get_et_stats

Message ID 84d1ef5a8a381e2f63acec71a755c6414c6530ad.1634565380.git.lorenzo@kernel.org (mailing list archive)
State Accepted
Delegated to: Felix Fietkau
Headers show
Series mt76: mt7915: remove dead code in mt7915_get_et_stats | expand

Commit Message

Lorenzo Bianconi Oct. 18, 2021, 1:57 p.m. UTC
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>
---
 drivers/net/wireless/mediatek/mt76/mt7915/main.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/main.c b/drivers/net/wireless/mediatek/mt76/mt7915/main.c
index 7210a1db2050..d56c8456cd2b 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7915/main.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7915/main.c
@@ -1213,11 +1213,7 @@  void mt7915_get_et_stats(struct ieee80211_hw *hw,
 	struct mib_stats *mib = &phy->mib;
 	/* 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;
 
 	mutex_lock(&dev->mt76.mutex);