sysless: IRQ_RETVAL must not to touch its argument for void return type handler variant.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Mon, 13 Feb 2012 17:01:26 +0000 (18:01 +0100)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Mon, 13 Feb 2012 17:01:26 +0000 (18:01 +0100)
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
embedded/arch/generic/defines/irq_generic.h

index 1f6c39c..ce2eada 100644 (file)
@@ -17,7 +17,7 @@ typedef int irqreturn_t;
 typedef void irqreturn_t;
 #define IRQ_NONE       ((void)0)
 #define IRQ_HANDLED    ((void)1)
-#define IRQ_RETVAL(x)  ((x)!=IRQ_NONE?IRQ_HANDLED:IRQ_NONE)
+#define IRQ_RETVAL(x)  (IRQ_HANDLED)
 
 #endif /*WITH_IRQ_RETVAL*/