aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-10-23 09:36:55 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-23 09:36:55 -0700
commite82cff752f57810a2259415ad2e9087c2d69484c (patch)
tree9c93e9b2e42c9a95fd6d75010ac958ed9cf1dd40 /include
parentb80de369aa5c7c8ce7ff7a691e86e1dcc89accc6 (diff)
parentb6f3b7803a9231eddc36d0a2a6d2d8105ef89344 (diff)
Merge branch 'irq-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'irq-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: genirq: NULL struct irq_desc's member 'name' in dynamic_irq_cleanup() genirq: fix off by one and coding style genirq: fix set_irq_type() when recording trigger type
Diffstat (limited to 'include')
-rw-r--r--include/linux/irqnr.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/irqnr.h b/include/linux/irqnr.h
index 3171ddc3b39..452c280c811 100644
--- a/include/linux/irqnr.h
+++ b/include/linux/irqnr.h
@@ -13,9 +13,9 @@ extern int nr_irqs;
# define for_each_irq_desc(irq, desc) \
for (irq = 0, desc = irq_desc; irq < nr_irqs; irq++, desc++)
-# define for_each_irq_desc_reverse(irq, desc) \
- for (irq = nr_irqs -1, desc = irq_desc + (nr_irqs -1 ); \
- irq > 0; irq--, desc--)
+# define for_each_irq_desc_reverse(irq, desc) \
+ for (irq = nr_irqs - 1, desc = irq_desc + (nr_irqs - 1); \
+ irq >= 0; irq--, desc--)
#endif
#define for_each_irq_nr(irq) \