Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1481525pxf; Fri, 12 Mar 2021 10:27:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdjXbzQHqoYEA7WXuQg7wD548m8a+iTKu3hG1FC9zPGW0LHFRcrwQQNYjKZPWMqw8KrLTr X-Received: by 2002:a17:907:10ce:: with SMTP id rv14mr10215182ejb.56.1615573640716; Fri, 12 Mar 2021 10:27:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615573640; cv=none; d=google.com; s=arc-20160816; b=c8ACmF5BSS3/EF2Bi+C0aXzcBps1BvbAxN2xPxUOD2yFbuiwqLpwJdW9MMZZmVdUQW zxJEpNm4jbrHpb2/ENPkxWNY8g/9hE+1ZPq0p44OWAo6iMhJn1EpVnAkECZbGjcSOIF9 XzItJXFSDZBtK6CLFLz5QQsK/bWyzAnaTArKtqrYYjNYb3A1WI7E4T9gLNbtuZ9GMwNU ka/T7ULe4dilzjhfJ0Lv1tHhxbQ2uxrfAPOXWX5cS3b7PFr6hR0H6/pzmJajck/rsbW9 /bWEhooCy9PMKXYtFhhckHESCgAcmwTVwXYBTvsyYm78n+SaGrUvz7WAQXZVlvELoT0S 2Luw== 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=Yvj9VlNCJGW39h5zyW6mxFLALESqIppcu+9mYEiGhNM=; b=nukSepKBnF0ftkYzWBSclNJs2J7L82ViDgOne/t5RTipgPJSiPD9hKicOMWEVw5+aO JbF0cwhr676KsYULUnU4g5bWOQT+VEn7XTKBOzhEbNJnjBE1w8eOHencJjn3R8NKuJtH rUn6qsWmwSNWO9ErJbIF8fJ2IHJIRQVq5kK+TLuZZyhAEyJzVlKPZLzdI5QPmAs4VpVd Bb+foX9kB0kJYTm0ZdDGq7B2ojuxio5PBJmnbxBMKU3ihkiWENhTBujVuW0PTtEUMBpF +p48bcYXqvJ4q1n9NMzscBU2Stl+ZbV/ivSLWOLEog3nolapb8Z3lpWqp1ZYxg/kXTjD U4+A== 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 ju22si4640045ejc.514.2021.03.12.10.26.57; Fri, 12 Mar 2021 10:27: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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233545AbhCLSYE (ORCPT + 99 others); Fri, 12 Mar 2021 13:24:04 -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 S233248AbhCLSXp (ORCPT ); Fri, 12 Mar 2021 13:23:45 -0500 IronPort-SDR: CXUgadzO8bECy6dh/Kvv+dsVPWinb0U6bgROGeqB/PMHddgEtqMH1jFQlF+hXiiR5bHmQDcFsZ r0DHnoNFKbXw== X-IronPort-AV: E=McAfee;i="6000,8403,9921"; a="252888938" X-IronPort-AV: E=Sophos;i="5.81,244,1610438400"; d="scan'208";a="252888938" 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:45 -0800 IronPort-SDR: Qmd/PrKab4w5xZ718ans4S8x0QzbdDtmgQ4cSiMH5KAMUFVWZalveoN5EIQ1fpgV22pc84X/lt qIjmHRs5kEJQ== X-IronPort-AV: E=Sophos;i="5.81,244,1610438400"; d="scan'208";a="377792044" 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:44 -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 , Peter Ujfalusi , Kuninori Morimoto Subject: [PATCH 16/23] ASoC: pcm1681: remove useless assignment Date: Fri, 12 Mar 2021 12:22:39 -0600 Message-Id: <20210312182246.5153-17-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/pcm1681.c:87:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] int i = 0, val = -1, enable = 0; ^ Signed-off-by: Pierre-Louis Bossart --- sound/soc/codecs/pcm1681.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/pcm1681.c b/sound/soc/codecs/pcm1681.c index 07ed8fded471..5b78e9299c95 100644 --- a/sound/soc/codecs/pcm1681.c +++ b/sound/soc/codecs/pcm1681.c @@ -84,7 +84,7 @@ static const int pcm1681_deemph[] = { 44100, 48000, 32000 }; static int pcm1681_set_deemph(struct snd_soc_component *component) { struct pcm1681_private *priv = snd_soc_component_get_drvdata(component); - int i = 0, val = -1, enable = 0; + int i, val = -1, enable = 0; if (priv->deemph) { for (i = 0; i < ARRAY_SIZE(pcm1681_deemph); i++) { -- 2.25.1