Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1480363pxf; Fri, 12 Mar 2021 10:25:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXjF5SIDTNzPHNt0+66zfn0QPs7O5X/i7183gmpk/9b8b6Wahxa8iIeieJgxeed65lM2LH X-Received: by 2002:a17:906:8614:: with SMTP id o20mr9720528ejx.386.1615573519435; Fri, 12 Mar 2021 10:25:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615573519; cv=none; d=google.com; s=arc-20160816; b=f9T2hr6QOEZO9u1oh9Qxngo6byWmcbDsKM+sXO9O3obKSGev6CJgVqIGKWyy4H32tl uu5wNqEfVmQHZMV7gT01uQyui7peohLYIa8yGF8K2rBaeK6AgnBhULWLdhDWZUu0bSXv pANI2r7JtaSf6mHn0gPcRXpMqCtTiR7zvB78A72kS7mFxvMwInwLjnqIH7O5FEN0og41 /XduZOEe4NYvRVrabkfXMYzRtT67btPMtuNQAUz/6XIbHGa2lfMC4KDdnk/Uu2FCyAvP DEdTX9GVUVsgfARJ9W2AXxngEly4VJ/BFCRQEkNnO5eCOqcaDpKFk4pm/Ep3Y7zk16Jh ChWA== 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=d5HC8c83/4SAq/3FNSX6uZjGJGJ8rsbE9tByS1aznMM=; b=jWkoV+BYkJWSjWLav3penmZlF3fyCUgVf7OxUaMtBd2HQuua+zt+A5GioIwIe1esES t6ixQGpG1vWqqWJop/fHra0f8bjrN19xyvNHWGMAjEByWBzw4f8m/Y0DjkSLeRrtwwzl ekfsfS5Z6exVhvBjGHtKxLY2k3PuDix/YXYflH9hd5v8kADI+HKJjTzF0OZBz8UBt3TB 3OqAtWOt40UGOzbQOlnfEdcKviGBwJDNYEFSEdtpcO7z34RcHbdk8jIDTr/xWfe1HWwu Uspk6i8TiKcyOR4d7IaJDlWGhaHdBlYOh3Rlp0q9wmj9MZgf5+LdTI0L8QoVxhcqx+Wf iVRg== 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 q11si4748258edn.333.2021.03.12.10.24.56; Fri, 12 Mar 2021 10:25:19 -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 S233486AbhCLSYC (ORCPT + 99 others); Fri, 12 Mar 2021 13:24:02 -0500 Received: from mga07.intel.com ([134.134.136.100]:4236 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233242AbhCLSXm (ORCPT ); Fri, 12 Mar 2021 13:23:42 -0500 IronPort-SDR: Hq87hztx/troOAC7i6j+X6EtLIf36nCT2ImetOImKtiLVnvybp7rgAC51JG1mN9u4rJYw47naf q0SSOC+SnsNQ== X-IronPort-AV: E=McAfee;i="6000,8403,9921"; a="252888932" X-IronPort-AV: E=Sophos;i="5.81,244,1610438400"; d="scan'208";a="252888932" 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:41 -0800 IronPort-SDR: zMCw97GH6dLD/FJCGWKbL2HpR1ng+Fqi3/2gHxr0gMkZi0Uhx1VM8ZHR0vdlLzEbogTEVrSA4q ei0xbHGtahGw== X-IronPort-AV: E=Sophos;i="5.81,244,1610438400"; d="scan'208";a="377792038" 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:40 -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 , Matthias Brugger , Tzung-Bi Shih , Jiaxin Yu , "Shane.Chien" , linux-arm-kernel@lists.infradead.org (moderated list:ARM/Mediatek SoC support), linux-mediatek@lists.infradead.org (moderated list:ARM/Mediatek SoC support) Subject: [PATCH 14/23] ASoC: mt6359: remove useless assignment Date: Fri, 12 Mar 2021 12:22:37 -0600 Message-Id: <20210312182246.5153-15-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/mt6359.c:242:19: style: Variable 'stage' is assigned a value that is never used. [unreadVariable] int i = 0, stage = 0; ^ sound/soc/codecs/mt6359.c:260:19: style: Variable 'stage' is assigned a value that is never used. [unreadVariable] int i = 0, stage = 0; ^ sound/soc/codecs/mt6359.c:274:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] int i = 0, stage = 0; ^ sound/soc/codecs/mt6359.c:274:19: style: Variable 'stage' is assigned a value that is never used. [unreadVariable] int i = 0, stage = 0; ^ Signed-off-by: Pierre-Louis Bossart --- sound/soc/codecs/mt6359.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/mt6359.c b/sound/soc/codecs/mt6359.c index 6f4b1da52082..b909b36582b7 100644 --- a/sound/soc/codecs/mt6359.c +++ b/sound/soc/codecs/mt6359.c @@ -239,7 +239,7 @@ static void zcd_disable(struct mt6359_priv *priv) static void hp_main_output_ramp(struct mt6359_priv *priv, bool up) { - int i = 0, stage = 0; + int i, stage; int target = 7; /* Enable/Reduce HPL/R main output stage step by step */ @@ -257,7 +257,7 @@ static void hp_main_output_ramp(struct mt6359_priv *priv, bool up) static void hp_aux_feedback_loop_gain_ramp(struct mt6359_priv *priv, bool up) { - int i = 0, stage = 0; + int i, stage; int target = 0xf; /* Enable/Reduce HP aux feedback loop gain step by step */ -- 2.25.1