genirq: fix off by one and coding style

Fix off-by-one in for_each_irq_desc_reverse().

Impact is near zero in practice, because nothing substantial wants to
iterate down to IRQ#0 - but fix it nevertheless.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
Ingo Molnar 2008-10-21 15:49:59 +02:00
parent 0b3682ba33
commit e9f95e6373
2 changed files with 5 additions and 5 deletions

View File

@ -15,7 +15,7 @@ extern int nr_irqs;
# define for_each_irq_desc_reverse(irq, desc) \
for (irq = nr_irqs - 1, desc = irq_desc + (nr_irqs - 1); \
irq > 0; irq--, desc--)
irq >= 0; irq--, desc--)
#endif
#define for_each_irq_nr(irq) \