public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] OMAP: irq: fix bug with a reused loop counter
@ 2011-08-17  7:37 Tapani
  0 siblings, 0 replies; only message in thread
From: Tapani @ 2011-08-17  7:37 UTC (permalink / raw)
  To: tony, linux-omap


Bugfix: Two nested for-loops were both using "i" as loop counter.

Signed-off-by: Tapani Utriainen <tapani@technexion.com>
---
 arch/arm/mach-omap2/irq.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/arch/arm/mach-omap2/irq.c
+++ b/arch/arm/mach-omap2/irq.c
@@ -165,8 +165,8 @@
 
 		omap_irq_bank_init_one(bank);
 
-		for (i = 0, j = 0; i < bank->nr_irqs; i += 32, j += 0x20)
-			omap_alloc_gc(bank->base_reg + j, i, 32);
+		for (j = 0; j < bank->nr_irqs; j += 32)
+			omap_alloc_gc(bank->base_reg + j, j, 32);
 
 		nr_of_irqs += bank->nr_irqs;
 		nr_banks++;
---

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-08-17  7:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-17  7:37 [PATCH] OMAP: irq: fix bug with a reused loop counter Tapani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox