From patchwork Fri Jul 22 03:58:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tapani Utriainen X-Patchwork-Id: 997972 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p6M43dH8013739 for ; Fri, 22 Jul 2011 04:03:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750730Ab1GVEDf (ORCPT ); Fri, 22 Jul 2011 00:03:35 -0400 Received: from technexion.com ([72.51.46.185]:36195 "EHLO technexion.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750695Ab1GVEDe (ORCPT ); Fri, 22 Jul 2011 00:03:34 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Fri, 22 Jul 2011 04:03:39 +0000 (UTC) X-Greylist: delayed 357 seconds by postgrey-1.27 at vger.kernel.org; Fri, 22 Jul 2011 00:03:34 EDT Received: from myhost (114-32-98-169.HINET-IP.hinet.net [114.32.98.169]) by technexion.com (Postfix) with ESMTPA id EA0308780E1 for ; Fri, 22 Jul 2011 11:53:59 +0800 (CST) Date: Fri, 22 Jul 2011 11:58:10 +0800 From: Tapani Utriainen To: linux-omap@vger.kernel.org Subject: [PATCH] OMAP: irq: loop counter fix in omap_init_irq() Message-ID: <20110722115810.34f963ad@myhost> Organization: TechNexion X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.5; i686-pc-linux-gnu) Mime-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: Tapani Utriainen Fixes bug where variable i was redundantly used for counting two nested loops. Signed-off-by: Tapani Utriainen --- irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 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 --- 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++;