From 8c9d4b38d258c56ff719148edd7b0e589dcf8d90 Mon Sep 17 00:00:00 2001 From: Lorenzo Bianconi Date: Mon, 18 Oct 2021 15:57:24 +0200 Subject: [PATCH] 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 --- mt7915/main.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mt7915/main.c b/mt7915/main.c index 2c6266a41..de68c85f6 100644 --- a/mt7915/main.c +++ b/mt7915/main.c @@ -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;