[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1483431809-15250-1-git-send-email-ivan.stoyanov@amk-drives.bg>
Date: Tue, 3 Jan 2017 10:23:29 +0200
From: ivan.stoyanov@...-drives.bg
To: vinod.koul@...el.com
Cc: arnd@...db.de, dan.j.williams@...el.com, dmaengine@...r.kernel.org,
linux-kernel@...r.kernel.org, amk <amk@...-drives.bg>
Subject: [PATCH 2/2] Fix warning during compilation
From: amk <amk@...-drives.bg>
drivers/dma/ipu/ipu_irq.c: In function 'ipu_irq_fn':
drivers/dma/ipu/ipu_irq.c:342:4: warning: 'irq' may be used uninitialized in this function [-Wmaybe-uninitialized]
Signed-off-by: amk <amk@...-drives.bg>
---
drivers/dma/ipu/ipu_irq.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/dma/ipu/ipu_irq.c b/drivers/dma/ipu/ipu_irq.c
index 3f9477c..fae6ef8a 100644
--- a/drivers/dma/ipu/ipu_irq.c
+++ b/drivers/dma/ipu/ipu_irq.c
@@ -330,15 +330,15 @@ static void ipu_irq_fn(struct irq_desc *desc)
raw_spin_lock(&bank_lock);
map = src2map(32 * i + line);
- if (map)
- irq = map->irq;
- raw_spin_unlock(&bank_lock);
if (!map) {
+ raw_spin_unlock(&bank_lock);
pr_err("IPU: Interrupt on unmapped source %u bank %d\n",
line, i);
continue;
}
+ irq = map->irq;
+ raw_spin_unlock(&bank_lock);
generic_handle_irq(irq);
}
}
--
2.7.4
Powered by blists - more mailing lists