summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo@kernel.org>2021-04-17 12:27:06 +0200
committerFelix Fietkau <nbd@nbd.name>2021-04-21 12:25:17 +0200
commit367518858e78b80ef09a0075b637a6d8e0b88dfb (patch)
treef2f674ee3198dcca79edb188c0210e449dd2bee4 /drivers/net
parent5352efaed0812dc23308498a2e700630f603579f (diff)
mt76: mt7921: do not use 0 as NULL pointer
Fix the following sparse warning: drivers/net/wireless/mediatek/mt76/mt7921/mac.c:1425:70: warning: Using plain integer as NULL pointer Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt7921/mac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/mac.c b/drivers/net/wireless/mediatek/mt76/mt7921/mac.c
index 3145880df6e7..c8819e78cea3 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7921/mac.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7921/mac.c
@@ -1424,7 +1424,7 @@ void mt7921_mac_reset_work(struct work_struct *work)
ieee80211_wake_queues(hw);
ieee80211_iterate_active_interfaces(hw,
IEEE80211_IFACE_ITER_RESUME_ALL,
- mt7921_vif_connect_iter, 0);
+ mt7921_vif_connect_iter, NULL);
}
void mt7921_reset(struct mt76_dev *mdev)