From patchwork Fri Nov 14 10:39:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 5304801 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7B0579F2ED for ; Fri, 14 Nov 2014 10:40:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BF51720176 for ; Fri, 14 Nov 2014 10:40:34 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 980C920148 for ; Fri, 14 Nov 2014 10:40:33 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 97E8E2665E3; Fri, 14 Nov 2014 11:40:32 +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, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, NO_DNS_FOR_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 920DF260559; Fri, 14 Nov 2014 11:39:33 +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 E13DB26659F; Fri, 14 Nov 2014 11:39:32 +0100 (CET) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by alsa0.perex.cz (Postfix) with ESMTP id 94275260559 for ; Fri, 14 Nov 2014 11:39:23 +0100 (CET) Received: by mail-pa0-f47.google.com with SMTP id kx10so17313077pab.20 for ; Fri, 14 Nov 2014 02:39:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DLIFi9HVY9lbeTreqjxYIJD/nu/U0yjIb71j2jqgIKA=; b=RKgRWzkJrwo9+kXao+bBcmGlQvvgcKzkmy9t2WHS1oq61RZXnmXim+PRL+iSwMMVbJ fKvBk42pgTFDdZjO35UstCS22Hylc608G6sd2DvjCaF6u14+glCM0f9+ZHrabCrDGmF4 k08L0yyRECUFsu+v/Qr2iq9GtRR7JDjQgoE9o/w0bfQPLZ063Y6Ed09cYzU3Hf82ZvTm QbxrPFte5R49eAvw4CV3oeEq9NUsJBWJlQHwM8Jp8LgPtBGF+miJz4HDMtodUz4g1C6j /H9yeKygAFfvD7FOIWP+Rb/2pr9ZlhwupAcNyAxfkGCFQNoi7a4oeEIGnK+OohDb/jPz TcNA== X-Received: by 10.68.229.5 with SMTP id sm5mr9167654pbc.68.1415961562581; Fri, 14 Nov 2014 02:39:22 -0800 (PST) Received: from localhost.localdomain ([122.169.164.56]) by mx.google.com with ESMTPSA id v4sm926085pbs.10.2014.11.14.02.39.20 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Nov 2014 02:39:21 -0800 (PST) From: Sudip Mukherjee To: Takashi Iwai Date: Fri, 14 Nov 2014 16:09:07 +0530 Message-Id: <1415961547-10330-3-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1415961547-10330-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1415961547-10330-1-git-send-email-sudipm.mukherjee@gmail.com> Cc: alsa-devel@alsa-project.org, Sudip Mukherjee , linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH v2 3/3] ALSA: ice1712: remove unused variable 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP buf_size was initialized with snd_pcm_lib_buffer_bytes, but never used. and so it is safe to be deleted. Signed-off-by: Sudip Mukherjee --- sound/pci/ice1712/ice1712.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/pci/ice1712/ice1712.c b/sound/pci/ice1712/ice1712.c index 5975334..6525191 100644 --- a/sound/pci/ice1712/ice1712.c +++ b/sound/pci/ice1712/ice1712.c @@ -620,10 +620,9 @@ static int snd_ice1712_playback_ds_prepare(struct snd_pcm_substream *substream) { struct snd_ice1712 *ice = snd_pcm_substream_chip(substream); struct snd_pcm_runtime *runtime = substream->runtime; - u32 period_size, buf_size, rate, tmp, chn; + u32 period_size, rate, tmp, chn; period_size = snd_pcm_lib_period_bytes(substream) - 1; - buf_size = snd_pcm_lib_buffer_bytes(substream) - 1; tmp = 0x0064; if (snd_pcm_format_width(runtime->format) == 16) tmp &= ~0x04;