From patchwork Mon Aug 7 06:36:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Agner X-Patchwork-Id: 9884459 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4A9EF60363 for ; Mon, 7 Aug 2017 06:37:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3DEF128554 for ; Mon, 7 Aug 2017 06:37:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3241528578; Mon, 7 Aug 2017 06:37:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1F7128554 for ; Mon, 7 Aug 2017 06:37:17 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 0323026701E; Mon, 7 Aug 2017 08:37:14 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 2EA4D26701F; Mon, 7 Aug 2017 08:37:12 +0200 (CEST) Received: from mail.kmu-office.ch (mail.kmu-office.ch [178.209.48.109]) by alsa0.perex.cz (Postfix) with ESMTP id 4974E266CC9 for ; Mon, 7 Aug 2017 08:37:07 +0200 (CEST) Received: from localhost.localdomain (unknown [IPv6:2601:602:8800:40b0::587]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 321715C2122; Mon, 7 Aug 2017 08:34:14 +0200 (CEST) From: Stefan Agner To: timur@tabi.org, nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com Date: Sun, 6 Aug 2017 23:36:57 -0700 Message-Id: <20170807063657.12581-1-stefan@agner.ch> X-Mailer: git-send-email 2.13.3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1502087655; bh=/zet6lDtNpvF8QN0hBQw6/Z3BHHDd9FL5JFy3eLdeZo=; h=From:To:Cc:Subject:Date:Message-Id; b=meovL+HQsH12NDAO8b0BHnxwAzAB0RdaC2zoifvgo6C59o9D/or8c4psYHHzKs/rIX5M5JfIAE042Pctox4G+PFB3GzuCetVDZTtnT+Xc6FuDmIVDYkeTziG2HseAeHBuieo3Kg6jH/amb6t1yzRJX/wRDzT8YNNb/GIbEvawxg= Cc: fabio.estevam@nxp.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Stefan Agner Subject: [alsa-devel] [PATCH] ASoC: fsl_asrc: protect macro argument X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Protect macro argument with parentheses to avoid ambiguity. This fixes a warning seen with clang: warning: logical not is only applied to the left hand side of this comparison Signed-off-by: Stefan Agner Acked-by: Nicolin Chen --- sound/soc/fsl/fsl_asrc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl_asrc.h b/sound/soc/fsl/fsl_asrc.h index 0f163abe4ba3..ec33dab4b909 100644 --- a/sound/soc/fsl/fsl_asrc.h +++ b/sound/soc/fsl/fsl_asrc.h @@ -57,7 +57,7 @@ #define REG_ASRDOC 0x74 #define REG_ASRDI(i) (REG_ASRDIA + (i << 3)) #define REG_ASRDO(i) (REG_ASRDOA + (i << 3)) -#define REG_ASRDx(x, i) (x == IN ? REG_ASRDI(i) : REG_ASRDO(i)) +#define REG_ASRDx(x, i) ((x) == IN ? REG_ASRDI(i) : REG_ASRDO(i)) #define REG_ASRIDRHA 0x80 #define REG_ASRIDRLA 0x84