]> git.hungrycats.org Git - linux/commitdiff
[SPARC]: kill NR_IRQS + 1 stuff.
authorPete Zaitcev <zaitcev@redhat.com>
Sun, 8 Dec 2002 06:33:57 +0000 (22:33 -0800)
committerDavid S. Miller <davem@nuts.ninka.net>
Sun, 8 Dec 2002 06:33:57 +0000 (22:33 -0800)
arch/sparc/kernel/irq.c

index 3b1bf43df7dfa692993e898e3cb3a3b9f402d258..9b73e08c0e2ac3bb8f8f6f49eaa5649f3ffc40a5 100644 (file)
@@ -95,7 +95,7 @@ void (*sparc_init_timers)(void (*)(int, void *,struct pt_regs *)) =
 struct irqaction static_irqaction[MAX_STATIC_ALLOC];
 int static_irq_count;
 
-struct irqaction *irq_action[NR_IRQS+1] = {
+struct irqaction *irq_action[NR_IRQS] = {
          NULL, NULL, NULL, NULL, NULL, NULL , NULL, NULL,
          NULL, NULL, NULL, NULL, NULL, NULL , NULL, NULL
 };
@@ -113,7 +113,7 @@ int show_interrupts(struct seq_file *p, void *v)
                
                return show_sun4d_interrupts(p, v);
        }
-       for (i = 0 ; i < (NR_IRQS+1) ; i++) {
+       for (i = 0 ; i < NR_IRQS ; i++) {
                action = *(i + irq_action);
                if (!action) 
                        continue;