[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110209104310.71c12826@lxorguk.ukuu.org.uk>
Date: Wed, 9 Feb 2011 10:43:10 +0000
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org,
Hans-Christian Egtvedt <hans-christian.egtvedt@...el.com>,
David Vrabel <dvrabel@...om.com>,
Greg Kroah-Hartman <gregkh@...e.de>,
Haavard Skinnemoen <hskinnemoen@...el.com>
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@...gutronix.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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists