Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2498549pxf; Sun, 14 Mar 2021 00:32:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJxS1NhHulmfd3SZLsvgUV5NKv1fMMgZsde25CJjMbvKrZK39bLtDm7M46OZQS9IGqwXxeAR X-Received: by 2002:a50:bb47:: with SMTP id y65mr24229383ede.305.1615710744884; Sun, 14 Mar 2021 00:32:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615710744; cv=none; d=google.com; s=arc-20160816; b=aV0Ll3xt1l3LmBMzu4VDKEKnyHR1NaZlr5chMl13RLa0aTBEUaZdb5gEGKHSv8IQG3 SRmR0+Tuqiy1lOyg+gTTZs2bi0fxzD0STIjPKMM4T7aWlqucoKBkSVTbHjpQVtMex44h WNA6F5tuoUs8W/cSxYD6NNOlNiTaq6Hpy/NgxODxlSSoeig+443amjtgh89qAB0xUVSx eiGJhc+h2CQLi7QZmL6TSSQdEWVDsU5o0oZpEzPyOciJ1krFA+Wdogf9ok5YieW5zMws ivn5BIfrqXWiqZkSidEHoXgRuF6jqJZX7YqlRETGlCRk0/3gLAaZYJzIRRxk+fz77uQN cCFQ== 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=W6wdIIO7QM9Tb2IIjmoYIgZuahbhIX5+uznpLBsxlLQ=; b=iDJ5+0U2YmsnsVYB+Kmua/M+3/A0ZA8JKOXCUcCjTrDAESKaogNnVggy4hZteOZZx/ pEAhtNV8lEeelNOIlZGTooAA37IL//fziKAun7tjF0mOmGJKWbyYB6zwC9AM8b21xJRe 2V9bseOhESedb5/HNY3ZU9ozpzPrenear78SvWJ3lQQLSPpe47PHE9Rge02dGBP2Wp86 UBNSAc64Upl9UyLIWu280/wPyGVWDD5ZhQ8IEYRXsO+oIWILFmV3eaMQLTJK/OeJAeg3 5ZZVXzzDjhDWAIVnkMiKG/ux+5FwvaxVqMF//ema2DLFuDI7en18FcMJiS+6pkajXD4E diVA== 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 q4si8440222edn.433.2021.03.14.00.32.02; Sun, 14 Mar 2021 00:32:24 -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 S234916AbhCNIbG (ORCPT + 99 others); Sun, 14 Mar 2021 04:31:06 -0400 Received: from mx2.suse.de ([195.135.220.15]:50354 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234756AbhCNIbA (ORCPT ); Sun, 14 Mar 2021 04:31:00 -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 3375CAC2D; Sun, 14 Mar 2021 08:30:59 +0000 (UTC) Date: Sun, 14 Mar 2021 09:30:59 +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