From e43df6bf489278be2c5d7e90343931e8ec5dd186 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 13 Jan 2025 18:58:12 +0100 Subject: [PATCH] wifi: mt76: mt7996: fix thermal sparse warning Signed-off-by: Felix Fietkau --- mt7996/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mt7996/init.c b/mt7996/init.c index f54b3a93..696ff53c 100644 --- a/mt7996/init.c +++ b/mt7996/init.c @@ -197,7 +197,7 @@ static const struct thermal_cooling_device_ops mt7996_thermal_ops = { static void mt7996_unregister_thermal(struct mt7996_phy *phy) { struct wiphy *wiphy = phy->mt76->hw->wiphy; - char name[sizeof("cooling_device%d")]; + char name[sizeof("cooling_deviceXXX")]; if (!phy->cdev) return; @@ -210,7 +210,7 @@ static void mt7996_unregister_thermal(struct mt7996_phy *phy) static int mt7996_thermal_init(struct mt7996_phy *phy) { struct wiphy *wiphy = phy->mt76->hw->wiphy; - char cname[sizeof("cooling_device%d")]; + char cname[sizeof("cooling_deviceXXX")]; struct thermal_cooling_device *cdev; struct device *hwmon; const char *name;