Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9f95e63 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

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: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 0b3682ba
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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)			\
+2 −2

File changed.

Contains only whitespace changes.