Messages in this thread | | | Date | Wed, 9 Feb 2011 10:43:10 +0000 | From | Alan Cox <> | Subject | Re: [PATCH RESENT#2] [AVR32] don't check platform_get_irq's return value against zero |
| |
On Wed, 9 Feb 2011 11:28:04 +0100 Uwe Kleine-König <u.kleine-koenig@pengutronix.de> wrote:
> platform_get_irq returns -ENXIO on failure, so !int_irq was probably > always true. Better use (int)int_irq <= 0. Note that a return value of > zero is still handled as error even though this could mean irq0.
We don't have an IRQ 0 in Linux so that's fine. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |