Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Commit

Permalink
ARM: OMAP: irq: loop counter fix in omap_init_irq()
Browse files Browse the repository at this point in the history
Fixes bug where variable i was redundantly used for counting two nested loops.

Signed-off-by: Tapani Utriainen <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
  • Loading branch information
Tapani- authored and tmlind committed Oct 3, 2011
1 parent a368f77 commit 5c30cdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-omap2/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ static void __init omap_init_irq(u32 base, int nr_irqs)

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++;
Expand Down

0 comments on commit 5c30cdf

Please sign in to comment.