Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762207AbZLQHSd (ORCPT ); Thu, 17 Dec 2009 02:18:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759198AbZLQHS2 (ORCPT ); Thu, 17 Dec 2009 02:18:28 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:42387 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758900AbZLQHS1 (ORCPT ); Thu, 17 Dec 2009 02:18:27 -0500 X-Auth-Info: +pbvojHz3VTsIHH1eYYl1c9W7GaJtPuCZls6Yqrx7kg= Message-ID: <4B29DB0B.1060109@grandegger.com> Date: Thu, 17 Dec 2009 08:17:31 +0100 From: Wolfgang Grandegger User-Agent: Thunderbird 2.0.0.23 (X11/20090812) MIME-Version: 1.0 To: Alan Cox CC: =?ISO-8859-1?Q?Uwe_Kleine-K=F6nig?= , linux-kernel@vger.kernel.org, David Vrabel , Greg Kroah-Hartman , Urs Thuermann , Oliver Hartkopp , "David S. Miller" , Kurt Van Dijck , netdev@vger.kernel.org Subject: Re: [PATCH 4/7] can/at91: don't check platform_get_irq's return value against zero References: <1260979809-24811-1-git-send-email-u.kleine-koenig@pengutronix.de> <1260979809-24811-2-git-send-email-u.kleine-koenig@pengutronix.de> <1260979809-24811-3-git-send-email-u.kleine-koenig@pengutronix.de> <1260979809-24811-4-git-send-email-u.kleine-koenig@pengutronix.de> <4B290A57.3010705@grandegger.com> <20091216170802.GA26325@pengutronix.de> <20091216174749.277761fe@lxorguk.ukuu.org.uk> In-Reply-To: <20091216174749.277761fe@lxorguk.ukuu.org.uk> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 776 Lines: 20 Alan Cox wrote: >> + if (!res || irq <= (int)NO_IRQ) { >> >> but this looks too ugly. (IMHO using NO_IRQ is already ugly.) > > No IRQ was a private variable for the drivers/ide stack internally and > only present in any form on a few odd platforms where it got "borrowed" > and hasn't yet been eliminated > > The absence of an IRQ is zero. A bus IRQ of zero is remapped by the OS. OK, I was remembering some old issues with NO_IRQ. Next time I will read the commit message more carefully. Sorry for the noise. Wolfgang. -- 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/