Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3385963pxf; Mon, 29 Mar 2021 00:17:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNEzPLWweWFPYPWM5LzlOZ8w15m7NIQLdg1udq/0N0puSERhHNJ3byitSxtYuBhpl8du0z X-Received: by 2002:a17:906:489:: with SMTP id f9mr26353375eja.428.1617002278159; Mon, 29 Mar 2021 00:17:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617002278; cv=none; d=google.com; s=arc-20160816; b=Wb6plGdDF0jqnIqMRlTsJtV87gOQn2VQp91f8p9EBQL5/QblGicozK9jKcMYNJMxFe 6tabxLNOvVgBaV5nrVvqnplvxyQlduQdKMwc1yJReiNW09fWoWZ4RREFE4bNOBha5V6t QuNQ5Ps7EL6t98OpChP2cLMVAJm5K05/TivTP1M5Bq0ky/gzGQNb9mgsT58/iOc02ga7 KvcqDNSnPReXn09Ewwlf+qvUqVRx2EiqwL2TjcMMc6egCXArYADHJIAZ3OoQWB0c6hee iPHuR6Ti39K5smDawmBP2t+CCRmGLvvb/+qqqUq5RuK+4YV2N0l6Q33dnBQl2dCBUhgW JeTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=DNyW7G1yT2hTo5u6qo+I50JVd8C42OgcsWqOflCzXh8=; b=nLypJfluOOq2vL7DK1/kKpcpDe0oaJgR8Eo474JG+JMZ1Zn4C4mRNrSssLsOxeis9R kKWV6Mp4sz0GuoYsdf/D73WumCKW60OrXvMgEV6iFDhwWboCRiqgEOMBa5EB2Gpx4EUr k5UZFqrWlUZ9kiGYp6twI/vTxj90yMy4y1qK6DLe5Rq1GF82dDOa6KgQwUhzYhiSNYuE AoQoZ4iHzqvVTsHRT30ujidaC/WPt1xipBItRnD9VHLRVjJzN6v+ExgfYLhSdPaqC1w3 GQCDuoq183RK5NhE5N9S7YH6rvBcC1z2Mt0j95CfkAHRNKZt+r9jMvlkedZS/NpknxOj +gQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="O1Lhqri/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e24si12202193edv.373.2021.03.29.00.17.35; Mon, 29 Mar 2021 00:17:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="O1Lhqri/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230319AbhC2HOn (ORCPT + 99 others); Mon, 29 Mar 2021 03:14:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbhC2HOM (ORCPT ); Mon, 29 Mar 2021 03:14:12 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79C0CC061574; Mon, 29 Mar 2021 00:14:12 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id bf3so13037591edb.6; Mon, 29 Mar 2021 00:14:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=DNyW7G1yT2hTo5u6qo+I50JVd8C42OgcsWqOflCzXh8=; b=O1Lhqri/67H3A4ntvRGIydscVPwxr/qAV5aGyhnIbjAHlV+nk7mWe6nHtno/pegeZf SM++FZT5GqiihoyqQcOac3ePKzKfmpCeSGM8moJG2g3Mq5AF9yvvt6v9HVLf0O11tUKf biwf750LE+xhmiOFBed+kOsBYKW8Nr0Hv1l/+B9uWaWFc4vu5w4iOg1udlS6rG1dTMQq fiL//aT9e/bxD0IXQoHzmR25OsMyjTFdgAWmrt6jF15IXHmi+kLfV5EH7Y+AFcGJDHnH cgJpOrHj5HjHWNyE+WyWzuhwnbXl3J+qKRhguHEvI5eKtdfvxYnKsdPLaEP13R0hqZr5 RR8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=DNyW7G1yT2hTo5u6qo+I50JVd8C42OgcsWqOflCzXh8=; b=guTktg3X6JkzT+FTXt6YqlSqOB6yE18IhjV90q6omXyjqUZNeGI6b7zBjBJbU/VNhi v5n8iX3FW22TNSNU2yfwrUOyG84rGlS4KPowPgS0vszIpIIjXNHifiuzrPRyyvv58ZQU we/u/aFneMc53VXa6bBjnXtRS/kdE7rtg+YGFHwBLbeT6blXTwVxTDvag4+TL9n7qgBB M0bv3WtSQHtlYgtCpd3XzACt9mIAui8pauAoVX1UylNo00wf59NumNU8Gud37odmEgtn CbfBqu5oUaDrB6StCFMw5hB15nDQGIar2upbVU1AKrc9TVQOBel1+Jn5ZkZX9SuM44EP lC8Q== X-Gm-Message-State: AOAM531W3OEX05sgB7jnXDLQQ+0bGcCS8ftWPF9rVxlmKYoHHPduV/o+ Hm8iIJtNUT27SCicyBpf0Y5mC8J6FdE= X-Received: by 2002:aa7:cb4d:: with SMTP id w13mr27168220edt.249.1617002051233; Mon, 29 Mar 2021 00:14:11 -0700 (PDT) Received: from localhost ([62.96.65.119]) by smtp.gmail.com with ESMTPSA id a9sm8475486edt.82.2021.03.29.00.14.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 00:14:09 -0700 (PDT) Date: Mon, 29 Mar 2021 09:14:35 +0200 From: Thierry Reding To: Pierre-Louis Bossart Cc: alsa-devel@alsa-project.org, tiwai@suse.de, broonie@kernel.org, linux-kernel@vger.kernel.org, Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Jonathan Hunter , "open list:TEGRA ARCHITECTURE SUPPORT" Subject: Re: [PATCH 12/17] ASoC: tegra: tegra20_das: clarify expression Message-ID: References: <20210326215927.936377-1-pierre-louis.bossart@linux.intel.com> <20210326215927.936377-13-pierre-louis.bossart@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="u16SdL02k7B5NOWk" Content-Disposition: inline In-Reply-To: <20210326215927.936377-13-pierre-louis.bossart@linux.intel.com> User-Agent: Mutt/2.0.6 (98f8cb83) (2021-03-06) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --u16SdL02k7B5NOWk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 26, 2021 at 04:59:22PM -0500, Pierre-Louis Bossart wrote: > cppcheck warning: >=20 > sound/soc/tegra/tegra20_das.c:64:60: style: Boolean result is used in > bitwise operation. Clarify expression with > parentheses. [clarifyCondition] > reg =3D otherdap << TEGRA20_DAS_DAP_CTRL_SEL_DAP_CTRL_SEL_P | > ^ > sound/soc/tegra/tegra20_das.c:65:61: style: Boolean result is used in > bitwise operation. Clarify expression with > parentheses. [clarifyCondition] >=20 > !!sdata2rx << TEGRA20_DAS_DAP_CTRL_SEL_DAP_SDATA2_TX_RX_P | > ^ > sound/soc/tegra/tegra20_das.c:66:61: style: Boolean result is used in > bitwise operation. Clarify expression with > parentheses. [clarifyCondition] > !!sdata1rx << TEGRA20_DAS_DAP_CTRL_SEL_DAP_SDATA1_TX_RX_P | > ^ >=20 > Signed-off-by: Pierre-Louis Bossart > --- > sound/soc/tegra/tegra20_das.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) Acked-by: Thierry Reding --u16SdL02k7B5NOWk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAmBhflsACgkQ3SOs138+ s6GRWw//bi/X8imkX0asE+iIbIjEB/8g0DDtXmC2e58GwHBjtrzNy5YnJGEvD3MX KDFYn0bSoGKTy+g4SQe86WyPY4m45WEjWJipDG7Y84HxlQrpZfBfLgTYoT6LxLBc vFoNwz7POLiegrL7xrPXyd1ut6JIm294V5rAO10lDX5o/nW7xXfI0ocV5FE/rcJh YUSg1l2ITZ7E9pdV3kpaBvfqPUR6jpmHnGWNG7G47tmp0fyjNMIRi6zplq2OGz0j rXYVU8w1/BxFM4LtCAmo1Fb0Wv9SwZm6u7t4TH5YWChPrRqe72BsI8JXiBGljCf/ dKWANs50A1tg/V8A+cQUycQ/UfSnH82GR0NjxoMyvNTLzlRklQHrYu37T9Umhy8h ER7k0MT5833AKFCGFn/WN444JgDkop0jl77WICZITHuDXUDf58VY1vi3lBYWRNcO XNwx/keXxo9NxR7dogIGSDKXtLhgv0REHKRw0Svfic7aRJGHzETUANbMU3CRfv4y KsLm8JFQ5lnLkxPNYIrwrR2cfmKcTGXs+7JWAulUaZpasekEdguPwwTy4gKmmcz6 VyMv0w/ZcjV7dlnY5EAR/WqRxNBUUiTQ2vvHAfOXa51DuCkdhCqSwiTdKHBaTXZ+ qo8j1m0qkmaptH2mzNpvSxplcomiqVfVKogkp0d57frRFWsqeFk= =sfBK -----END PGP SIGNATURE----- --u16SdL02k7B5NOWk--