Skip to contentSkip to conversation

iwlwifi: fix gcc warning when CONFIG_IWLWIFI_DEBUG is not defined

PATCH New Zhu Yi 1 participant 1 message Aug 8, 2007 Networking drivers (wireless)

lore
Share & tools
lore

Zhu Yi

author
#0 lore raw

PATCH 1/1 iwlwifi: fix gcc warning when CONFIG_IWLWIFI_DEBUG is not defined

---
 origin/iwl-base.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
drivers/net/wireless/iwl-base.c +4 -1
index 15965fc..b8293fe 100644
@@ -5107,9 +5107,12 @@ static void iwl_error_recovery(struct iwl_priv *priv)
 
 static void iwl_irq_tasklet(struct iwl_priv *priv)
 {
-	u32 inta, inta_mask, handled = 0;
+	u32 inta, handled = 0;
 	u32 inta_fh;
 	unsigned long flags;
+#ifdef CONFIG_IWLWIFI_DEBUG
+	u32 inta_mask;
+#endif
 
 	spin_lock_irqsave(&priv->lock, flags);
 
Signature · 1 line
1.5.2