wifi: mt76: mt7996: fix uninitialized variable in parsing txfree
authorYi-Chia Hsieh <yi-chia.hsieh@mediatek.com>
Thu, 12 Oct 2023 22:00:26 +0000 (15:00 -0700)
committerFelix Fietkau <nbd@nbd.name>
Thu, 7 Dec 2023 17:50:19 +0000 (18:50 +0100)
Fix the uninitialized variable warning in mt7996_mac_tx_free.

Fixes: 2461599f835e ("wifi: mt76: mt7996: get tx_retries and tx_failed from txfree")
Signed-off-by: Yi-Chia Hsieh <yi-chia.hsieh@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7996/mac.c

index 04540833485fe8c82e5f872f6aacb3e04aada0bb..59ab07b89087075510bc404ab1257f570e392807 100644 (file)
@@ -1074,7 +1074,7 @@ mt7996_mac_tx_free(struct mt7996_dev *dev, void *data, int len)
        struct mt76_phy *phy3 = mdev->phys[MT_BAND2];
        struct mt76_txwi_cache *txwi;
        struct ieee80211_sta *sta = NULL;
-       struct mt76_wcid *wcid;
+       struct mt76_wcid *wcid = NULL;
        LIST_HEAD(free_list);
        struct sk_buff *skb, *tmp;
        void *end = data + len;