Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4355980yba; Wed, 17 Apr 2019 09:44:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZ5rJPCbf+80b7GMDTIaJUEgcK5NqCWJr6V6wa1LX3H02VrAbcGpgItySgyhVI/Nu5xQxl X-Received: by 2002:a65:6210:: with SMTP id d16mr81330288pgv.110.1555519463572; Wed, 17 Apr 2019 09:44:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555519463; cv=none; d=google.com; s=arc-20160816; b=QdGNlnzDFGXGoW+33OyarlWZsqb8Y6IEIZiiffHDnrlHwZnyxNwkwrNpmNMakkdKNX 0mIW2gsXuDqOz9/KuaW0wOC1CSTbsYF1wcFCg0xe8O/YG+VRiwo4sHXSnumZCWbaJApE kqUO4hhunozE7m2g62LROcJWKTR+DlsxVXR8rld54pgBYl9Yp+EZ4TQ21J/vOfdG64z9 6mytAtgIxmtmF8DTNcKmWcieA97Bu3Z4XWDw2CWQhmvbEaQGWEqUreVvAK+BHQfBYhLl eWss0drdYNrDXq4NkCYrTaZx2r9AYIF7uYmb2a5y0DAlm04UMbVHFwjttuos0oh3xnH9 Qn0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=oswjkdkJXh6MhzI3kDJxBh8JCJUqRfWbh8eCr/sXW+k=; b=KoHqCmH7evsivq0j1ZDVUxGSpylwkWkcBEQxf3ZEr3sPI6s3VdPwpjv/rZseLXGJdZ SD6TQk9LiIBvWVh7EabA1ST2AX4nnomuFvhdfUp6aGu7bSw6B9q39/fwi8kcG9OYPgEM crtoKpy7AOGVVoZQVGgROSBsZtyAuP/fiVoetP4G99Zy0hjKwtD9ClHl7LRYEWoP1SUv 51qxDTtDG3bTnLHapijA/cE9DG8Hy8a3EeHs9nQX4tf06uqpJrdvOig83npsbAzfTdLp uxOc5ZnXtqbPch5tJCiAWW1ivR/nt6xsY2s/r/NTGgW9VQfFBDXlMv2d/aQaKwClqyXy sung== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=n2tZ9J8z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a1si51590454pff.258.2019.04.17.09.44.08; Wed, 17 Apr 2019 09:44:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=n2tZ9J8z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733027AbfDQQm5 (ORCPT + 99 others); Wed, 17 Apr 2019 12:42:57 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:38192 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732937AbfDQQm4 (ORCPT ); Wed, 17 Apr 2019 12:42:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=oswjkdkJXh6MhzI3kDJxBh8JCJUqRfWbh8eCr/sXW+k=; b=n2tZ9J8zn5Di m/QS34P/b+bGNrH1hOmJbL6plXjVNBSLlf67UIEwyxEQuW3J+cPmAshw8TGYutz0dzlF4t4U2IHJH 4LunVZmepw2kdoAP5se5SyxHc9XrfY1VwJH0K6vTHxwOsoJaCDtAvRZKAByQo+ee5+TOe+Pd7iqoM +l5DY=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1hGndW-000151-PF; Wed, 17 Apr 2019 16:42:14 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 546461128FC8; Wed, 17 Apr 2019 17:42:14 +0100 (BST) From: Mark Brown To: YueHaibing Cc: alsa-devel@alsa-project.org, broonie@kernel.org, festevam@gmail.com, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Mark Brown , nicoleotsuka@gmail.com, perex@perex.cz, timur@kernel.org, tiwai@suse.com, Xiubo.Lee@gmail.com Subject: Applied "ASoC: fsl_micfil: Remove set but not used variable 'osr'" to the asoc tree In-Reply-To: <20190417150915.37968-1-yuehaibing@huawei.com> X-Patchwork-Hint: ignore Message-Id: <20190417164214.546461128FC8@debutante.sirena.org.uk> Date: Wed, 17 Apr 2019 17:42:14 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: fsl_micfil: Remove set but not used variable 'osr' has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.2 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From fd30e17e4f7a499635bd4e3a5d83534afcaaa9a8 Mon Sep 17 00:00:00 2001 From: YueHaibing Date: Wed, 17 Apr 2019 23:09:15 +0800 Subject: [PATCH] ASoC: fsl_micfil: Remove set but not used variable 'osr' Fixes gcc '-Wunused-but-set-variable' warning: sound/soc/fsl/fsl_micfil.c: In function 'get_clk_div': sound/soc/fsl/fsl_micfil.c:154:6: warning: variable 'osr' set but not used [-Wunused-but-set-variable] It is never used since introduction in commit 47a70e6fc9a8 ("ASoC: Add MICFIL SoC Digital Audio Interface driver.") Signed-off-by: YueHaibing Signed-off-by: Mark Brown --- sound/soc/fsl/fsl_micfil.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sound/soc/fsl/fsl_micfil.c b/sound/soc/fsl/fsl_micfil.c index 40c07e756481..f7f2d29f1bfe 100644 --- a/sound/soc/fsl/fsl_micfil.c +++ b/sound/soc/fsl/fsl_micfil.c @@ -151,12 +151,9 @@ static inline int get_clk_div(struct fsl_micfil *micfil, { u32 ctrl2_reg; long mclk_rate; - int osr; int clk_div; regmap_read(micfil->regmap, REG_MICFIL_CTRL2, &ctrl2_reg); - osr = 16 - ((ctrl2_reg & MICFIL_CTRL2_CICOSR_MASK) - >> MICFIL_CTRL2_CICOSR_SHIFT); mclk_rate = clk_get_rate(micfil->mclk); -- 2.20.1