Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1480297pxf; Fri, 12 Mar 2021 10:25:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJxjWbIO1qhGAPsH/KdTaPIRx+tkZQyM3Qj7rXbgxinCA01tnYKPbQPA0CWKdpU0Y2E1KCm+ X-Received: by 2002:a17:906:d938:: with SMTP id rn24mr10541196ejb.87.1615573512367; Fri, 12 Mar 2021 10:25:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615573512; cv=none; d=google.com; s=arc-20160816; b=W92OdYEPr8shs4GYQ+mUEhc+o0PdSIvZN2Pn0eKZHjjubqNN3PlNLY9dNlyoRVwgCn +qeRUXO+OCtaA1gqjI5957gLajxm7EKbmME5aKdH7Y/Xom9cSFrlQTwJLNP4rnwL2zvE RxTRGbV4eOQIXXuL9AW+LoJQ3guHmGxGfsl7SpyzC8RGlhbVRvhKe1Wr14UzPNFh4m/c vN0agla7QKxblCWbwM37D42uf6mSA3uYh1MjpabV/VDIi9OYZSuZ0WPhpFzBgZDZMDHg 4vKr8XLjw8cWw2H06uz+XVRMRag1Pu9cPjsdQW/SVGLcC141+VhCNIHWLbA6E8Dwl/pG +j4w== 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=MpbAGaZmo748nLY+9A5FsRfB21kYDcY8p4/kh6gUNwY=; b=wf9ohcCogCuoY9ywmrgj+JW6bJTPJJn0o/18KzVe45DAZYoEi6OAsKsZ6CNJl2YH1D NHMQh0el+r5FJq9nPBgiD0dkOuv5oDAlrbKDI6G84fRJs4y2Lu5CPv5chh7MqT3EgrJh rWzxRhgJNmS/UyijLZumZ5UT3FHMzecOKYqzmcuI+d9dYLiZWPk+1jAZjyWkp7taZSJJ 6Vf3T3hzryoDN6WZTg1Wl4lg/S+ZkIm/vg+QbUyTGoWMqAzsGMJOsNJhNOOsSUa8NavF +MLbZV1Cl1lZOmcy7Nnyvkq+GB1chm3j+ATHiYOW5rw4xJS8pqN7dGmsQS4sFqbGUAkz s1Pg== 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 4si4959336edc.316.2021.03.12.10.24.49; Fri, 12 Mar 2021 10:25:12 -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 S233435AbhCLSX7 (ORCPT + 99 others); Fri, 12 Mar 2021 13:23:59 -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 S232255AbhCLSXa (ORCPT ); Fri, 12 Mar 2021 13:23:30 -0500 IronPort-SDR: TCsUCdpKL/KMxrTNcM9F2o0l9krgVqfWqaHEPpbvNfnKHb9Fe535Y+moHVOUlGpINFORpb4GEf wu74CKthSqcg== X-IronPort-AV: E=McAfee;i="6000,8403,9921"; a="175999133" X-IronPort-AV: E=Sophos;i="5.81,244,1610438400"; d="scan'208";a="175999133" 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:29 -0800 IronPort-SDR: PIY0q2vSlc4LCYnkXD6p76ix5kuPwdko3K3KL5zxMrAyi0CtIAwocPC5liOp82yYpX+75AUSML mrNCB0Fndrsw== X-IronPort-AV: E=Sophos;i="5.81,244,1610438400"; d="scan'208";a="377791975" 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:28 -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 , Kuninori Morimoto , Ranjani Sridharan , Krzysztof Kozlowski , Peter Ujfalusi Subject: [PATCH 12/23] ASoC: max98090: remove useless assignment Date: Fri, 12 Mar 2021 12:22:35 -0600 Message-Id: <20210312182246.5153-13-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/max98090.c:1835:16: style: Variable 'test_diff' is assigned a value that is never used. [unreadVariable] int test_diff = INT_MAX; ^ Signed-off-by: Pierre-Louis Bossart --- sound/soc/codecs/max98090.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c index 06276ff5f8a3..bc30a1dc7530 100644 --- a/sound/soc/codecs/max98090.c +++ b/sound/soc/codecs/max98090.c @@ -1832,7 +1832,7 @@ static const struct dmic_table dmic_table[] = { /* One for each pclk freq. */ static int max98090_find_divisor(int target_freq, int pclk) { int current_diff = INT_MAX; - int test_diff = INT_MAX; + int test_diff; int divisor_index = 0; int i; -- 2.25.1