[PATCH mt76] wifi: mt76: mt7996: Do not use #elifdef directive
Lorenzo Bianconi
lorenzo at kernel.org
Fri Sep 12 08:15:34 PDT 2025
Do not use #elifdef directive since it is a C23 extension but rely
on #elif defined() instead.
Signed-off-by: Lorenzo Bianconi <lorenzo at kernel.org>
---
drivers/net/wireless/mediatek/mt76/mt7996/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/main.c b/drivers/net/wireless/mediatek/mt76/mt7996/main.c
index be8bf03aeb4b..fae9c4e07ab9 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7996/main.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7996/main.c
@@ -2258,7 +2258,7 @@ const struct ieee80211_ops mt7996_ops = {
.net_fill_forward_path = mt7996_net_fill_forward_path,
#ifdef CONFIG_NET_MEDIATEK_SOC_WED
.net_setup_tc = mt76_wed_net_setup_tc,
-#elifdef CONFIG_MT7996_NPU
+#elif defined(CONFIG_MT7996_NPU)
.net_setup_tc = mt76_npu_net_setup_tc,
#endif
.change_vif_links = mt7996_change_vif_links,
--
2.51.0
More information about the Linux-mediatek
mailing list