Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6735823yba; Wed, 1 May 2019 19:23:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZ7tro834kExlPxQuwpvj9wXq8e/Ty1FtSj1AQ0kj/W8MVRHtWV+rmQfkCdKn3wIPoaV48 X-Received: by 2002:a17:902:a583:: with SMTP id az3mr927695plb.205.1556763805749; Wed, 01 May 2019 19:23:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556763805; cv=none; d=google.com; s=arc-20160816; b=RpSKCPzQv7ZYvhIDboN5oTcj1SRxpRedwXm8shi27uhq1JHVEUV3Lsqru2gjqKn2Hr QLNFaJWzgE93LONCi/dL/JLF0cbBrihdKWkD91KBda8arG7B3vqBZoyDORHJcsk5L/vt hnEJ/7lbnVYO7j3VMxPsCaFrJRucgQjmlznPEHtfOW/ATDQ/m4xHEUswnGh1nluljRoC HX/MrmdfKy3z8zLRV4SY2ksfOpq8FRc4MVMNqoYeGunAJw7Z7zVhdcg9UTrn7mjl9IeV se+34ibBLrP3ouvFhP9M/lZ5qKHrCcGv7eaRD6sjtSEklj3FFWmTQgYjRJ6SuoAHhBLh tPpA== 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=s/aeLHmcSaCGZGW2T/ryaeA0ktI3wfHggwlvpiCdiGs=; b=qRblO0nzN9j7un6zpT9iJiJwPNw2xgcEaHSwQuq2gW3gboVQb9Xu2zNCWFgYEaBecX XtPqgsyfonGwlJ7chO53cwW7vNReizabLR9mefiRSQ8vUEPAr1A95mCGFXFRigNvK+WE PTaK4Jpc93CgCuVrdnYgW9RI7+lLlqlw/3MljzqyDbEzZfD+85PB/VOj4K9jTEpknjb7 K6dg7Z93ihkypwcsazF+dAVFkQebvPfoAvTx6UHDxElKEc9vCNaOzopxaT+hEROqziaY HIGkUh60s4mM0K9n1geiGIzT6njQSwKeGjPMqAS0i9McPvnizUahsR9bM4kLwGMYlq/j g4Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=pBr7tviu; 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 bb8si26681544plb.388.2019.05.01.19.23.11; Wed, 01 May 2019 19:23:25 -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=pBr7tviu; 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 S1726591AbfEBCTJ (ORCPT + 99 others); Wed, 1 May 2019 22:19:09 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:56422 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726520AbfEBCTB (ORCPT ); Wed, 1 May 2019 22:19:01 -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=s/aeLHmcSaCGZGW2T/ryaeA0ktI3wfHggwlvpiCdiGs=; b=pBr7tviub0M4 Y7B+GAiIE0/H/6glIphSg1+JN79huRE/j+YTI3NQ8U8Ngjerot3AmpFSTaWjMQnGMlH6D7sZc9AUF 3KdkDIC/cUuL6ULBrrDQkXR65KG+hNHiJxGyDwLWrIXCheEHEoXTtb4tYDKdoVda2u6WvOL4XHiHy b4dDw=; Received: from [211.55.52.15] (helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hM1J8-0005tL-2M; Thu, 02 May 2019 02:18:46 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 03B03441D3B; Thu, 2 May 2019 03:18:43 +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: <20190502021843.03B03441D3B@finisterre.ee.mobilebroadband> Date: Thu, 2 May 2019 03:18:42 +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 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 a0c34c7629bee46ffd8121987d27df25a6433cc7 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