Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752103AbcDTQty (ORCPT ); Wed, 20 Apr 2016 12:49:54 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:41528 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751694AbcDTQtx (ORCPT ); Wed, 20 Apr 2016 12:49:53 -0400 X-IronPort-AV: E=Sophos;i="5.24,510,1454972400"; d="scan'208";a="215165450" Date: Wed, 20 Apr 2016 18:49:42 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Jon Hunter , Jiang Liu , Marc Zyngier , Thomas Gleixner , linux-kernel@vger.kernel.org, kbuild-all@01.org Subject: [PATCH] irqdomain: fix compare_const_fl.cocci warnings Message-ID: User-Agent: Alpine 2.10 (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: 748 Lines: 24 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; }