linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] OMAP: irq: loop counter fix in omap_init_irq()
@ 2011-07-22  3:58 Tapani Utriainen
  2011-09-28 18:20 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Tapani Utriainen @ 2011-07-22  3:58 UTC (permalink / raw)
  To: linux-omap

From: Tapani Utriainen <tapani@technexion.com>

Fixes bug where variable i was redundantly used for counting two nested loops.

Signed-off-by: Tapani Utriainen <tapani@technexion.com>
--- 
 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 @@ 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++;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] OMAP: irq: loop counter fix in omap_init_irq()
  2011-07-22  3:58 [PATCH] OMAP: irq: loop counter fix in omap_init_irq() Tapani Utriainen
@ 2011-09-28 18:20 ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2011-09-28 18:20 UTC (permalink / raw)
  To: Tapani Utriainen; +Cc: linux-omap

* Tapani Utriainen <tapani@technexion.com> [110721 20:58]:
> From: Tapani Utriainen <tapani@technexion.com>
> 
> Fixes bug where variable i was redundantly used for counting two nested loops.

Thanks & sorry for the delay. Adding this into fixes.

Tony
 
> Signed-off-by: Tapani Utriainen <tapani@technexion.com>
> --- 
>  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 @@ 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++;
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-28 18:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-22  3:58 [PATCH] OMAP: irq: loop counter fix in omap_init_irq() Tapani Utriainen
2011-09-28 18:20 ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).