From patchwork Sat Jan 3 09:45:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Gang X-Patchwork-Id: 5562931 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7EC1EBF6C3 for ; Sun, 4 Jan 2015 09:34:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BCABF20138 for ; Sun, 4 Jan 2015 09:34:30 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 7964B20166 for ; Sun, 4 Jan 2015 09:34:26 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 944CA26156A; Sun, 4 Jan 2015 10:34:25 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,RCVD_IN_SBL, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id AD3312605D3; Sun, 4 Jan 2015 10:33:16 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id CA0202612DE; Sat, 3 Jan 2015 10:46:30 +0100 (CET) Received: from out1134-194.mail.aliyun.com (out1134-194.mail.aliyun.com [42.120.134.194]) by alsa0.perex.cz (Postfix) with ESMTP id BBE402607E9 for ; Sat, 3 Jan 2015 10:46:21 +0100 (CET) X-Alimail-AntiSpam: AC=CONTINUE; BC=0.283534|-1; FP=0|0|0|0|0|-1|-1|-1; HT=r41g03009; MF=gang.chen@sunrus.com.cn; PH=DS; RN=6; RT=6; SR=0; Received: from 192.168.1.104(mailfrom:gang.chen@sunrus.com.cn ip:223.72.65.1) by smtp.aliyun-inc.com(10.147.34.63); Sat, 03 Jan 2015 17:45:59 +0800 Message-ID: <54A7BA55.3020607@sunrus.com.cn> Date: Sat, 03 Jan 2015 17:45:57 +0800 From: Chen Gang User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.de, alsa-devel@alsa-project.org X-Mailman-Approved-At: Sun, 04 Jan 2015 10:33:12 +0100 Cc: "linux-kernel@vger.kernel.org" Subject: [alsa-devel] [PATCH] sound: soc: soc-pcm: Remove useless varialbe 'i' X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP 'i' is useless in soc_pcm_set_msb(), so remove it, the related warning (with allmodconfig under s390): CC [M] sound/soc/soc-pcm.o sound/soc/soc-pcm.c: In function 'soc_pcm_set_msb': sound/soc/soc-pcm.c:307:11: warning: unused variable 'i' [-Wunused-variable] int ret, i; ^ Signed-off-by: Chen Gang --- sound/soc/soc-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index d6e8d6b..6b0136e 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -304,7 +304,7 @@ static bool soc_pcm_has_symmetry(struct snd_pcm_substream *substream) static void soc_pcm_set_msb(struct snd_pcm_substream *substream, int bits) { struct snd_soc_pcm_runtime *rtd = substream->private_data; - int ret, i; + int ret; if (!bits) return;