Remove unused phy variable in mt7921_mac_tx_free routine Reported-by: kernel test robot <lkp@xxxxxxxxx> Signed-off-by: Lorenzo Bianconi <lorenzo@xxxxxxxxxx> --- drivers/net/wireless/mediatek/mt76/mt7921/mac.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/mac.c b/drivers/net/wireless/mediatek/mt76/mt7921/mac.c index ae67e93524c2..0659ff290af9 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7921/mac.c @@ -1119,7 +1119,6 @@ mt7921_mac_tx_free(struct mt7921_dev *dev, struct sk_buff *skb) */ if (info & MT_TX_FREE_PAIR) { struct mt7921_sta *msta; - struct mt7921_phy *phy; struct mt76_wcid *wcid; u16 idx; @@ -1131,7 +1130,6 @@ mt7921_mac_tx_free(struct mt7921_dev *dev, struct sk_buff *skb) continue; msta = container_of(wcid, struct mt7921_sta, wcid); - phy = msta->vif->phy; spin_lock_bh(&dev->sta_poll_lock); if (list_empty(&msta->poll_list)) list_add_tail(&msta->poll_list, &dev->sta_poll_list); -- 2.31.1