Re: [PATCH RESENT#2] [AVR32] don't check platform_get_irq's returnvalue against zero

From: Alan Cox
Date: Wed Feb 09 2011 - 05:41:00 EST


On Wed, 9 Feb 2011 11:28:04 +0100
Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/