Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1480307pxf; Fri, 12 Mar 2021 10:25:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxAhJ2rPqWlsosrRbWYtlf31G4VhylmtYWzhN60P0Xee1Eb8WqQ56hVU6B9ZmClYNmBSnJg X-Received: by 2002:a50:ee95:: with SMTP id f21mr5814399edr.130.1615573513593; Fri, 12 Mar 2021 10:25:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615573513; cv=none; d=google.com; s=arc-20160816; b=dyfGrB5s9BTWc7SmELkxvEWu28flywZEYIku//Awi1zSaMdwF0A5GSfyist7454+c4 SlSl/S9RvQxKgLzyX5a0+ZGjLCZLIiq9XA0kJd8bHR0TE8axeJgkX0a1R/2xTvsfZhtE dcXhOXvN/7u9CW3aIgN4UNmBVX9ptms0QoMmARPTRVk4WvoniWChtAfgzB4BoMRYsXxq hvw92nYr32bbFlTSGWw3n6ck0attxWUBxa+YRtFduBhiRfB2C15EIlGebPaqKNGhcdC9 Qc1Q/rXbqQTcCojNbILHbF60TTBotxnlur+JF5K3I8LN9GTGUxK/NctMYQphGniV3Pae vEJw== 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=WE4Z56pj5xywVWp67/gLMmrLlA6MkkPUVBsPBb8/GMo=; b=C3eAF8ci/Imy/DbWm72RoX0ZyJcr2mbzbTPMlisOIGY9rjg5n/FhJr49CViOoYglcs jg+RHXX/eS79eXx+s3NzUCBXkzDiOSzkcW01hkv/1tToF9sfxyAFphGbkkznIlThcJbj wo5+7GnRCjaz5csUTOGMpX4KZeoBrKE4f7nl2Jn8cyXYuNIYg9qxJty5e2Gqy2uX1rs/ O6xYjXOfJWbBvOdxG5tOybfil9p+a8k9fIacusJLDDIDbnHkNFWLosehwiwLJcBpbOWo 0bhFHOHbyN8b4aBiYZBFgsjBHvZuSPXB0LFPKcSWivla7IGE0OpdNV+lFqSSJj+DWcBw REdw== 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 g14si4542325edr.362.2021.03.12.10.24.48; Fri, 12 Mar 2021 10:25:13 -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 S233462AbhCLSYB (ORCPT + 99 others); Fri, 12 Mar 2021 13:24:01 -0500 Received: from mga02.intel.com ([134.134.136.20]:36942 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233237AbhCLSXc (ORCPT ); Fri, 12 Mar 2021 13:23:32 -0500 IronPort-SDR: LotSCT04Fn6C093kddesGepcMAlnnGeu1yNNy2GyctWYaXg9R8ywnMn4GPiuQRE7XwXYpya6SP t23q78sOtklw== X-IronPort-AV: E=McAfee;i="6000,8403,9921"; a="175999140" X-IronPort-AV: E=Sophos;i="5.81,244,1610438400"; d="scan'208";a="175999140" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Mar 2021 10:23:31 -0800 IronPort-SDR: vMplSHCv5mEPnukrrcRjc6KXfk6xTNUJu0wfzFooCUTKsGxGuahYFdqJAT5LRASrP2xONMgZmx 2otk2ZRhRGCg== X-IronPort-AV: E=Sophos;i="5.81,244,1610438400"; d="scan'208";a="377791990" 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:30 -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 , Jiaxin Yu , 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 13/23] ASoC: mt6358: remove useless initializations Date: Fri, 12 Mar 2021 12:22:36 -0600 Message-Id: <20210312182246.5153-14-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 warnings: sound/soc/codecs/mt6358.c:334:19: style: Variable 'stage' is assigned a value that is never used. [unreadVariable] int i = 0, stage = 0; ^ sound/soc/codecs/mt6358.c:350:19: style: Variable 'stage' is assigned a value that is never used. [unreadVariable] int i = 0, stage = 0; ^ 185/930 files checked 25% done Checking sound/soc/codecs/mt6359.c ... 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/mt6358.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/mt6358.c b/sound/soc/codecs/mt6358.c index 1f39d5998cf6..9b263a9a669d 100644 --- a/sound/soc/codecs/mt6358.c +++ b/sound/soc/codecs/mt6358.c @@ -331,7 +331,7 @@ static void hp_zcd_disable(struct mt6358_priv *priv) static void hp_main_output_ramp(struct mt6358_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 */ @@ -347,7 +347,7 @@ static void hp_main_output_ramp(struct mt6358_priv *priv, bool up) static void hp_aux_feedback_loop_gain_ramp(struct mt6358_priv *priv, bool up) { - int i = 0, stage = 0; + int i, stage; /* Reduce HP aux feedback loop gain step by step */ for (i = 0; i <= 0xf; i++) { -- 2.25.1