Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1480843pxf; Fri, 12 Mar 2021 10:26:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwGm6ffpgOvXjzEOzhe0P4cLxQ+v/FAzPBZdunUHJW+v3Ezt+WfnYOJfKtaB11YsPsoqlfY X-Received: by 2002:aa7:da14:: with SMTP id r20mr15508876eds.181.1615573570878; Fri, 12 Mar 2021 10:26:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615573570; cv=none; d=google.com; s=arc-20160816; b=mj7OxK9598me+QaZ3qGYKIFdeW5nEa0t5LuOfb8hEeALH189DVf3efEizdXQRXoeW3 fnuNEOzf3uuD/xVzzj+vXKxzPOT48rE/1b/lgp2HHfv9aaoSkLWQFfeg5SNP3oMNVMIJ aWER/22MinxmTTAZ9nNJX+ofxHnxCV15X801xm2WJgAujBLyvIpKJMR9zMP4oTRGTrNL esLBRYGJnQ9d/9lf6qLsDv+9KeWq7jhAFLwNWXW5OFLHk/iBB8z9B+nrtEeC0P9BBIif CewKEplUFKGKIQf0Dy/XsbpPgFn3UNeU1RM8HKO4Nm+1lfn3M3Hv85Q1oHIgSTpp9x4P tHSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=T7NmaUaCUlDpUEUH33bEO6jW9Nfj0e8PusWcZdJL8zg=; b=HqfTeg68wh7gfiqCZ98dzVD+iRTA5o5lPlOUZ609kVuc6UqVE5HXLVj33qapZZzsQM GqI9sLnPKJJEL3hmJQ3mYjQIbL8dC+pRV/DoYWQHqH78U4aFPq44E+ud9Cdr//TVVVa2 mdFGL4onk8gONfyFyG9YlOXhT2oGXLrEb+S6IRcrWQCYetDR+L/pSM/6MWz65dqvdI+J cklvYubBpC6m++WIHZJnVUQTnUZ7PPATcvsvhF7V/hX1QG7jnGeNgCN92owfJ0DWSX2m 3ikBbX36QSGagID/VZmF0y7EbWeel7DOB2CXd8UqCvnN7icIOejZz8UPIwi33dwUimjY +gjQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id le26si4699984ejc.659.2021.03.12.10.25.48; Fri, 12 Mar 2021 10:26:10 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233633AbhCLSYd (ORCPT + 99 others); Fri, 12 Mar 2021 13:24:33 -0500 Received: from mga07.intel.com ([134.134.136.100]:4253 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233338AbhCLSX4 (ORCPT ); Fri, 12 Mar 2021 13:23:56 -0500 IronPort-SDR: w13FiDNOJMJgKts56c6ehZmCNYzg+YdetPL53jxCXD3HvIL8WM9QpbUKzVrayyPBBZN/QS+uLf iXVknRMkiIIw== X-IronPort-AV: E=McAfee;i="6000,8403,9921"; a="252888963" X-IronPort-AV: E=Sophos;i="5.81,244,1610438400"; d="scan'208";a="252888963" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2021 10:23:55 -0800 IronPort-SDR: cb+1+bNNeKKmvFm81wcWOjv/cH+gGygnh4UXRZbh1T9j2xErmsG0AsXXlVl3UEskXuawC8/QII OsLRmqz+weRQ== X-IronPort-AV: E=Sophos;i="5.81,244,1610438400"; d="scan'208";a="377792078" Received: from amiteshs-mobl.amr.corp.intel.com (HELO pbossart-mobl3.intel.com) ([10.212.37.30]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2021 10:23:54 -0800 From: Pierre-Louis Bossart To: alsa-devel@alsa-project.org Cc: tiwai@suse.de, broonie@kernel.org, linux-kernel@vger.kernel.org, Pierre-Louis Bossart , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Kuninori Morimoto , Ranjani Sridharan Subject: [PATCH 22/23] ASoC: tlv320dac33: clarify expression Date: Fri, 12 Mar 2021 12:22:45 -0600 Message-Id: <20210312182246.5153-23-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210312182246.5153-1-pierre-louis.bossart@linux.intel.com> References: <20210312182246.5153-1-pierre-louis.bossart@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org cppcheck warning: sound/soc/codecs/tlv320dac33.c:1074:43: style: Clarify calculation precedence for '%' and '?'. [clarifyCalculation] (dac33->alarm_threshold % period_size ? ^ Signed-off-by: Pierre-Louis Bossart --- sound/soc/codecs/tlv320dac33.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/tlv320dac33.c b/sound/soc/codecs/tlv320dac33.c index d905e03aaec7..48572d66cb3b 100644 --- a/sound/soc/codecs/tlv320dac33.c +++ b/sound/soc/codecs/tlv320dac33.c @@ -1071,7 +1071,7 @@ static void dac33_calculate_times(struct snd_pcm_substream *substream, */ dac33->nsample = period_size * ((dac33->alarm_threshold / period_size) + - (dac33->alarm_threshold % period_size ? + ((dac33->alarm_threshold % period_size) ? 1 : 0)); else if (period_size > nsample_limit) dac33->nsample = nsample_limit; -- 2.25.1