From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lucas Stach Subject: Re: [PATCH v5 1/2] drm/bridge: Add sii902x driver Date: Fri, 03 Jun 2016 15:20:08 +0200 Message-ID: <1464960008.32235.1.camel@pengutronix.de> References: <1464879601-30569-1-git-send-email-boris.brezillon@free-electrons.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Emil Velikov Cc: Boris Brezillon , Mark Rutland , Meng Yi , Xiubo Li , Pawel Moll , Ian Campbell , Alison Wang , Nicolas Ferre , ML dri-devel , devicetree , Rob Herring , Alexandre Belloni , Kumar Gala , Jean-Christophe Plagniol-Villard , Jianwei Wang List-Id: devicetree@vger.kernel.org Am Freitag, den 03.06.2016, 10:38 +0100 schrieb Emil Velikov: > Hi Boris. [...] > > > + > > + if (client->irq > 0) { > I was always confused which is the correct way to check this >= 0 vs > > 0. DRM has both :-\ > Do you have any suggestions, should be 'mass convert' DRM to use only > one of the two ? > IRQ 0 is "no assigned irq", so invalid. Checking for > 0 is the right thing to do. Regards, LUcas -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html