From patchwork Tue Jul 1 04:40:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 4456551 X-Patchwork-Delegate: tiwai@suse.de 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CBC0DBEEAA for ; Tue, 1 Jul 2014 04:44:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 11FFD203E5 for ; Tue, 1 Jul 2014 04:44:52 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id DF013203E9 for ; Tue, 1 Jul 2014 04:44:50 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id C357D2656CC; Tue, 1 Jul 2014 06:44:49 +0200 (CEST) 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_SIGNED, 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 D9A812625D7; Tue, 1 Jul 2014 06:44:15 +0200 (CEST) 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 1287626509D; Tue, 1 Jul 2014 06:44:14 +0200 (CEST) Received: from mail-pd0-f182.google.com (mail-pd0-f182.google.com [209.85.192.182]) by alsa0.perex.cz (Postfix) with ESMTP id 5EFCB2625D7 for ; Tue, 1 Jul 2014 06:44:03 +0200 (CEST) Received: by mail-pd0-f182.google.com with SMTP id y13so9378695pdi.41 for ; Mon, 30 Jun 2014 21:44:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=N0D0FVzn8kh72UGxI288BrhU2UJOmm7wubOUDUAuK1w=; b=VWnn+4wS1bZ5qst5tNsaRU8f6cpcP/raDvnAse+KYiotShh1fAcgHc4lu3eHxofuwN yPscWOhxfivJV75NQMChb/94IjPaWX+q5nv7kF8SX7PaD88MgSWSFRcSmTiRCGXaQ1TV c5+v3Nfg++DuD7ntHMwcBQ/ngkVPX9HgKfxWp7xGeARjXH+Df9aWqrcKBIhXi9ZUkgHv y1Rk+EWcPqwYFw0htAWLRj9ZJs+sS3QZLfTsnifwXTsbGDA1DSeAp5qUn1icy1KFCxll /homhsr44pDYD3VGjvAiL1MUNJMJJAeXypGLTipJlFYHDyGahbnGuGAGBqnmtBskxIBM LsZQ== X-Received: by 10.68.241.68 with SMTP id wg4mr58133503pbc.66.1404189842289; Mon, 30 Jun 2014 21:44:02 -0700 (PDT) Received: from linaro.sisodomain.com ([14.140.216.146]) by mx.google.com with ESMTPSA id dd5sm30319801pbc.85.2014.06.30.21.43.59 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Jun 2014 21:44:01 -0700 (PDT) From: Sachin Kamat To: alsa-devel@alsa-project.org Date: Tue, 1 Jul 2014 10:10:30 +0530 Message-Id: <1404189630-5795-2-git-send-email-sachin.kamat@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1404189630-5795-1-git-send-email-sachin.kamat@samsung.com> References: <1404189630-5795-1-git-send-email-sachin.kamat@samsung.com> Cc: tiwai@suse.de, spk.linux@gmail.com Subject: [alsa-devel] [PATCH 2/2] ALSA: trident: Remove unused variable in trident_memory.c 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 'prev' is not used in the function. Remove it. Signed-off-by: Sachin Kamat --- sound/pci/trident/trident_memory.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/pci/trident/trident_memory.c b/sound/pci/trident/trident_memory.c index 3102a579660b..04c474658e3c 100644 --- a/sound/pci/trident/trident_memory.c +++ b/sound/pci/trident/trident_memory.c @@ -139,12 +139,11 @@ static inline void *offset_ptr(struct snd_trident *trident, int offset) static struct snd_util_memblk * search_empty(struct snd_util_memhdr *hdr, int size) { - struct snd_util_memblk *blk, *prev; + struct snd_util_memblk *blk; int page, psize; struct list_head *p; psize = get_aligned_page(size + ALIGN_PAGE_SIZE -1); - prev = NULL; page = 0; list_for_each(p, &hdr->block) { blk = list_entry(p, struct snd_util_memblk, list);