summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYi-Chia Hsieh <yi-chia.hsieh@mediatek.com>2023-10-12 15:00:26 -0700
committerFelix Fietkau <nbd@nbd.name>2023-12-07 18:50:19 +0100
commit706e83b33103fc5dc945765ddbf6a3e879d21275 (patch)
treea815ddb4f9801f6e16a74dcdf37ecf73f6e3cbf8
parentce18572b7b5933ae3f97ea201d03463c320f0956 (diff)
wifi: mt76: mt7996: fix uninitialized variable in parsing txfree
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>
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt7996/mac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/mac.c b/drivers/net/wireless/mediatek/mt76/mt7996/mac.c
index 04540833485f..59ab07b89087 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7996/mac.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7996/mac.c
@@ -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;