Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752204AbcDVTAn (ORCPT ); Fri, 22 Apr 2016 15:00:43 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:7562 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752050AbcDVTAm (ORCPT ); Fri, 22 Apr 2016 15:00:42 -0400 X-IronPort-AV: E=Sophos;i="5.24,518,1454972400"; d="scan'208";a="215477396" Date: Fri, 22 Apr 2016 21:00:40 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@localhost6.localdomain6 To: Jon Hunter cc: Jiang Liu , Marc Zyngier , Thomas Gleixner , linux-kernel@vger.kernel.org, kbuild-all@01.org Subject: Re: [PATCH] irqdomain: fix compare_const_fl.cocci warnings In-Reply-To: <571A6BAF.8040006@nvidia.com> Message-ID: References: <571A6BAF.8040006@nvidia.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1283 Lines: 46 On Fri, 22 Apr 2016, Jon Hunter wrote: > > On 20/04/16 17:49, Julia Lawall wrote: > > Move constants to the right of binary operators. > > > > Generated by: scripts/coccinelle/misc/compare_const_fl.cocci > > > > Signed-off-by: Fengguang Wu > > Signed-off-by: Julia Lawall > > --- > > > > Not a big deal, but the transformed code looks better to me. > > > > irqdomain.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > --- a/kernel/irq/irqdomain.c > > +++ b/kernel/irq/irqdomain.c > > @@ -618,7 +618,7 @@ unsigned int irq_create_fwspec_mapping(s > > * If the trigger type has not been set yet, then set > > * it now and return the interrupt number. > > */ > > - if (IRQ_TYPE_NONE == irq_get_trigger_type(virq)) { > > + if (irq_get_trigger_type(virq) == IRQ_TYPE_NONE) { > > irq_set_irq_type(virq, type); > > return virq; > > } > > What branch is this from? Looks very familiar and related to some > changes I have been working on, but in my latest version I already have > this as shown above [0]. Sorry, I didn't save that information. If it's done, it's done. Sorry for the noise. julia > Cheers > Jon > > [0] http://marc.info/?l=linux-tegra&m=146115064322071&w=2 > >