Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1482024pxf; Fri, 12 Mar 2021 10:28:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwTy5udtoMiIXJq+iCIH7C67gVvUG5iskBacmfawMgKVF6gqAxbDa5halnYXb6oY33DTKXJ X-Received: by 2002:a17:906:f210:: with SMTP id gt16mr9862173ejb.206.1615573686871; Fri, 12 Mar 2021 10:28:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615573686; cv=none; d=google.com; s=arc-20160816; b=ZaxAJ65Nz80q95iLubuHQgBF17t+8cbKZ5tYMtIHDaAe3XswK8CcGecvX1saJ4fZEh CtX/RMch8PORv/vnU/DERNpE6UaolXTtMfOMdSSKPXJW9d1Htkvyahl0rfNKw3S8CnxP ldBYU6DSQsFow7ewBDZMRyYBqZTWmys++jT/V7XFtAf2EBpVAT11Ijn/AAoNKjtqrZRv jwCCyHbMce5osADFSo7r89zvz2GTBCuI4JyanFxZU2c9dQqyclmyr0Bpd/oGylNzpd1q 0M6RLkII91kqF2qVkCGF6A0q7TAqmiedSbURkHvSlkj6/YeL3P4lKJVF6SNSeEDEzsPB ldYQ== 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=+WTsMp5bsBaA6lEKpBFs3rej7mOgx8Fp2qzEA+PW0vQ=; b=FMzL+M3kPPFUe2GYKrVgiHKvqlh9DnZdKaqq/k+hd5ZDAt4TBdTDElr5qBEyzqAf2a QNi5S9lhGOQfmEIkXliHUBJYPOu1O+Adhu/XJkx0uanfjvLqmfDuq+tuzhDjtV0ezvov PT9CdMEPB6YzsvvgTmMaELfIG0q0oojtXZ/F/gQSEO5aMRpZWvPQIpiaf06XYLoc89yv tULuK1dU8ongg+mzvV8gM5+RDp3Sbejfm9p4jb1xr+0thCW6MceMdVg0dzteWx1er92N 9LyhfVCOkyyAHiXAXx5z4UjgW8VWSHVSPW1W/zfJzEi0b9GRmF/ioMCWURRcDVyErAFQ iIVg== 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 w10si3947531edc.194.2021.03.12.10.27.43; Fri, 12 Mar 2021 10:28:06 -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 S233659AbhCLSYe (ORCPT + 99 others); Fri, 12 Mar 2021 13:24:34 -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 S233331AbhCLSXy (ORCPT ); Fri, 12 Mar 2021 13:23:54 -0500 IronPort-SDR: k5F9+Xg4eF56hgdUnEsT0yAOXv+ha0zaD/DaZYK6ezKucf4Ewy+d15FpMVvcgxrrcyYPFdzHvr 9PraJ+l0WZdQ== X-IronPort-AV: E=McAfee;i="6000,8403,9921"; a="252888960" X-IronPort-AV: E=Sophos;i="5.81,244,1610438400"; d="scan'208";a="252888960" 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:54 -0800 IronPort-SDR: E9O7IV7e7ub5dVrwkwUzmXCJw+SM4r+726+8r+foHL37Ll8I6AVOHSBQi42ZZKtGSx/3m1HCG3 VeYIKmbzE2UA== X-IronPort-AV: E=Sophos;i="5.81,244,1610438400"; d="scan'208";a="377792069" 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:52 -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 , Dan Murphy , Kuninori Morimoto , "Alexander A. Klimov" Subject: [PATCH 21/23] ASoC: tas2770: remove useless initialization Date: Fri, 12 Mar 2021 12:22:44 -0600 Message-Id: <20210312182246.5153-22-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/tas2770.c:109:10: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] int ret = 0; ^ Signed-off-by: Pierre-Louis Bossart --- sound/soc/codecs/tas2770.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/tas2770.c b/sound/soc/codecs/tas2770.c index 15fca5109e14..781bf9cc4faa 100644 --- a/sound/soc/codecs/tas2770.c +++ b/sound/soc/codecs/tas2770.c @@ -106,7 +106,7 @@ static int tas2770_codec_suspend(struct snd_soc_component *component) static int tas2770_codec_resume(struct snd_soc_component *component) { struct tas2770_priv *tas2770 = snd_soc_component_get_drvdata(component); - int ret = 0; + int ret; if (tas2770->sdz_gpio) { gpiod_set_value_cansleep(tas2770->sdz_gpio, 1); -- 2.25.1