Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2498517pxf; Sun, 14 Mar 2021 00:32:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7FC8i8O6stmPVlmWfV8l9n08LJ11YIDv1KDBX3IKob+zHUqyVdt8bLBduC0yKzCkOMsNv X-Received: by 2002:a17:906:3d62:: with SMTP id r2mr17288104ejf.488.1615710740442; Sun, 14 Mar 2021 00:32:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615710740; cv=none; d=google.com; s=arc-20160816; b=cwiq/Wpsj0fiTh3QYc1h3I9bYRleTBlxtGoMx45FGWZ/QRM8mX852jbWN2wl2x3PuB U3V72ViKO7sXnOs1i8X+/HngYjrD2uJw+3qZIBdFHEqNChu+PJSAaeOWcyqRyrSD+sDF misBWj7P3BJ0vrz7TEh9bkyrB0LtWynQQAnKT2fzhrBg8LR2J8u0lO56I43WtCqgBM6R pB3wt65KKb6d79BUS04I8gvxDqXbcaDuElyDiMdRrCEiegBh+EpztOgOJUSSkKy3+5Uu pS1rzHB+5J6KVMwYQOGSPEwR1GbbB0kp6Osqdk1HRFdQO3XcUL97l6XUWNi7EznQi/dp vsbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=3J6cWOC4FezepxEayGg6qA9UZQgo3NJLr9+k0EOLN5M=; b=Wj2WIV8CwMbm57+mB4de+FZc5VW/YP9aE/EphyIB5h80uUMO6mZ6jp1jkIP9Hv6Eu2 QA72WXZVc6vI2lO2AalcyTEkJUpO9bwe+f4U8gvffhUYH9CpQC5flbbainmqzGh79Qwd BWS1UZ6aBYZ2vl9aeINLC5rvTJBTVSVTyyg5AejYs4S8g2hZvesUggyVmHntoElEb3uj VsaBFGSUpE/x+ObXqEJ/Pe8ALN/pIvoRvLKcjxybcQYsSulble7x1id+w40D/9KSzhCc J1RpRWB6tWsyI/4uZuBfJabplCL4BmWIwzMySSGF8Tqj9nF8ABVt8h9soiublA1UsGIF LBpg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n4si8308226ejz.464.2021.03.14.00.31.58; Sun, 14 Mar 2021 00:32:20 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234806AbhCNIa3 (ORCPT + 99 others); Sun, 14 Mar 2021 04:30:29 -0400 Received: from mx2.suse.de ([195.135.220.15]:50114 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234756AbhCNIaX (ORCPT ); Sun, 14 Mar 2021 04:30:23 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 85547AB8C; Sun, 14 Mar 2021 08:30:22 +0000 (UTC) Date: Sun, 14 Mar 2021 09:30:22 +0100 Message-ID: From: Takashi Iwai To: Pierre-Louis Bossart Cc: alsa-devel@alsa-project.org, broonie@kernel.org, linux-kernel@vger.kernel.org, Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Kuninori Morimoto Subject: Re: [PATCH 05/23] ASoC: cx2070x: remove useless assignment In-Reply-To: <20210312182246.5153-6-pierre-louis.bossart@linux.intel.com> References: <20210312182246.5153-1-pierre-louis.bossart@linux.intel.com> <20210312182246.5153-6-pierre-louis.bossart@linux.intel.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 12 Mar 2021 19:22:28 +0100, Pierre-Louis Bossart wrote: > > Cppcheck warning: > > sound/soc/codecs/cx2072x.c:830:26: style: Variable > 'reg1.r.rx_data_one_line' is reassigned a value before the old one has > been used. [redundantAssignment] > > reg1.r.rx_data_one_line = 1; > ^ > > sound/soc/codecs/cx2072x.c:782:26: note: reg1.r.rx_data_one_line is > assigned > reg1.r.rx_data_one_line = 1; > ^ > > sound/soc/codecs/cx2072x.c:830:26: note: reg1.r.rx_data_one_line is > overwritten > reg1.r.rx_data_one_line = 1; > ^ > > sound/soc/codecs/cx2072x.c:831:26: style: Variable > 'reg1.r.tx_data_one_line' is reassigned a value before the old one has > been used. [redundantAssignment] > reg1.r.tx_data_one_line = 1; > ^ > sound/soc/codecs/cx2072x.c:783:26: note: reg1.r.tx_data_one_line is > assigned > reg1.r.tx_data_one_line = 1; > ^ > > sound/soc/codecs/cx2072x.c:831:26: note: reg1.r.tx_data_one_line is > overwritten > reg1.r.tx_data_one_line = 1; > ^ > > Likely copy/paste. > > Signed-off-by: Pierre-Louis Bossart Reviewed-by: Takashi Iwai thanks, Takashi > --- > sound/soc/codecs/cx2072x.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/sound/soc/codecs/cx2072x.c b/sound/soc/codecs/cx2072x.c > index 8ab22815c2c9..d2d004654c9b 100644 > --- a/sound/soc/codecs/cx2072x.c > +++ b/sound/soc/codecs/cx2072x.c > @@ -827,9 +827,6 @@ static int cx2072x_config_i2spcm(struct cx2072x_priv *cx2072x) > } > regdbt2.r.i2s_bclk_invert = is_bclk_inv; > > - reg1.r.rx_data_one_line = 1; > - reg1.r.tx_data_one_line = 1; > - > /* Configures the BCLK output */ > bclk_rate = cx2072x->sample_rate * frame_len; > reg5.r.i2s_pcm_clk_div_chan_en = 0; > -- > 2.25.1 >