Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1481492pxf; Fri, 12 Mar 2021 10:27:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3Fc62VQJB025H1HzAkfUhuS3dQiY6IJl0/Uo4hurJJbs/tm80aGaBApjrqW7E/E9XDnN4 X-Received: by 2002:aa7:d954:: with SMTP id l20mr15731197eds.1.1615573637083; Fri, 12 Mar 2021 10:27:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615573637; cv=none; d=google.com; s=arc-20160816; b=WD4+tg95CyTMBxs4bCcbyv33SJBDmYKr7frnIAKv4ruc/YKPHSF7Em7eIx0VtBt0GZ v2/tgGTIvZ6UEEj3HfwG/Hnc4hZ3kSFojZJJ/3j05BDae1mF+kySXwYKMucA8I77V1Nl LW1dOmr5z1KC+L1NUTxjR4/TBNn6HMhi7Py8KzRZkS9Of9pken3hZ17BtBn2F3YNm6ZK xZNMQkDSNNKjSCOJYlqcyagIyglmBKwIqOrLYc/7yki8QlTx3AqhkYM07f3XNxjyGAPX VOx2khtMnAJ/6svzBtR3e/j6b6zF7z23daQIP6v/rWGiSyBtvjoiSLk4OqU03PcSImzu 1x+g== 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=psqwy35c7DkaUyraqfDZmxBw9hbKNovoPk5k9ZkrT6c=; b=oJm0roILVb+etQ0XrR5NHAtfEr57L9MTx7AGFmKnVCVCMSkpRT0LWiRIDt9G0/qHtl YkJ9QgA93g44BP5fSkTOgvfDopg1fYRX/wPpjRSm/W+tSfRMnJNtvEsqOUf+dEe/oUj2 Hvxyy3KCNOYWuoLfQNAsAgiKFC8ybow+8ZzC9+01GWM37a5hwWCh0POnJimg2l8GTU5T rQejOaQrP/OGdrDXj8VXsxyTW9f3FeoWZA0hgZ+hKk5ji2w8Cv77A+HNgie2on8akXru P5M00D2y7jBbIyo3Fwnr6IvoAhdE5cn32H9xwZkxWcbX0kTTNTLir1rkAuRCmVWe8Dd9 ONRw== 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 s25si4961187ejy.8.2021.03.12.10.26.53; Fri, 12 Mar 2021 10:27:17 -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 S233513AbhCLSYD (ORCPT + 99 others); Fri, 12 Mar 2021 13:24:03 -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 S233245AbhCLSXn (ORCPT ); Fri, 12 Mar 2021 13:23:43 -0500 IronPort-SDR: 3lBdQhmKzEqLTdD+8eyU6Dg3q3tG5c1bPVf8rKrwzik2q/Y4lA8CRnxT+uGUPsjRSETfXSrC9s ZGRE/GrhLyKA== X-IronPort-AV: E=McAfee;i="6000,8403,9921"; a="252888934" X-IronPort-AV: E=Sophos;i="5.81,244,1610438400"; d="scan'208";a="252888934" 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:43 -0800 IronPort-SDR: btbVK3oHXYUzV0roY6nLMj4vHmzEGrzBPXFLXQPU/qTRw8vU/YvirN6Nm0eQpMwsnXBVM8Pj6I nGyEuzTn+CXA== X-IronPort-AV: E=Sophos;i="5.81,244,1610438400"; d="scan'208";a="377792043" 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:42 -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 , Randy Dunlap Subject: [PATCH 15/23] ASoC: nau8825: remove useless assignment Date: Fri, 12 Mar 2021 12:22:38 -0600 Message-Id: <20210312182246.5153-16-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/nau8825.c:2113: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/nau8825.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/nau8825.c b/sound/soc/codecs/nau8825.c index e19db30c457b..67de0e49ccf4 100644 --- a/sound/soc/codecs/nau8825.c +++ b/sound/soc/codecs/nau8825.c @@ -2111,7 +2111,7 @@ static int nau8825_set_pll(struct snd_soc_component *component, int pll_id, int static int nau8825_mclk_prepare(struct nau8825 *nau8825, unsigned int freq) { - int ret = 0; + int ret; nau8825->mclk = devm_clk_get(nau8825->dev, "mclk"); if (IS_ERR(nau8825->mclk)) { -- 2.25.1