From patchwork Tue Jul 1 11:32:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 4458321 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 863DBBEEAA for ; Tue, 1 Jul 2014 11:39:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BC960203F3 for ; Tue, 1 Jul 2014 11:39:15 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 96740203EB for ; Tue, 1 Jul 2014 11:39:14 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 94B11265799; Tue, 1 Jul 2014 13:39:13 +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 C9C72261B21; Tue, 1 Jul 2014 13:36:58 +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 8A20A26510A; Tue, 1 Jul 2014 13:36:57 +0200 (CEST) Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) by alsa0.perex.cz (Postfix) with ESMTP id 876D7261A7F for ; Tue, 1 Jul 2014 13:36:43 +0200 (CEST) Received: by mail-pd0-f169.google.com with SMTP id g10so10004152pdj.28 for ; Tue, 01 Jul 2014 04:36:42 -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=l8PfAl9nuInnXm8UXNX48R8O7gQ+qRXJ7KNBIxsPr8g=; b=KCmOUeF2qzoXeawtZ+x5jSjCS44gcDlhv5w0XgPczLfdvpoSwtfkjtDYvRCSoOjc5K unCoUJ5T+B3wxLy4ZxFYx4s+ib7GHVC3++zto/uG2ZiPnQjc2EiKiGEr4UBgQvw/iMyY ayst0sFuNDDRkk3/lx/F9Ux52eHEN9Zuck9AT1WU5wUujhnK88F55tgXYR861MClbYGW hwrNrNEalRB3uFytlYrJkz2YKJmfuMNlROtU/lTHY0oyUd/ySQUHKKqOgT2z39wIEvsy OxHIrdzwxtlMkNvFoD0vICJPNNoshfyBBIepCYgT7Bd9B/Be76inyBtJcJ/qSAqePt3y g9Lg== X-Received: by 10.68.242.103 with SMTP id wp7mr60863845pbc.131.1404214602518; Tue, 01 Jul 2014 04:36:42 -0700 (PDT) Received: from linaro.sisodomain.com ([14.140.216.146]) by mx.google.com with ESMTPSA id be7sm115269157pad.9.2014.07.01.04.36.39 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Jul 2014 04:36:41 -0700 (PDT) From: Sachin Kamat To: alsa-devel@alsa-project.org Date: Tue, 1 Jul 2014 17:02:58 +0530 Message-Id: <1404214378-24669-5-git-send-email-sachin.kamat@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1404214378-24669-1-git-send-email-sachin.kamat@samsung.com> References: <1404214378-24669-1-git-send-email-sachin.kamat@samsung.com> Cc: tiwai@suse.de, spk.linux@gmail.com Subject: [alsa-devel] [PATCH 5/5] ALSA: mixart: 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 'err' is not used in the function. Remove it. Signed-off-by: Sachin Kamat --- sound/pci/mixart/mixart_core.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/pci/mixart/mixart_core.c b/sound/pci/mixart/mixart_core.c index 71f4bdcc4055..84f67450924e 100644 --- a/sound/pci/mixart/mixart_core.c +++ b/sound/pci/mixart/mixart_core.c @@ -151,13 +151,11 @@ static int send_msg( struct mixart_mgr *mgr, { u32 headptr, tailptr; u32 msg_frame_address; - int err, i; + int i; if (snd_BUG_ON(msg->size % 4)) return -EINVAL; - err = 0; - /* get message frame address */ tailptr = readl_be(MIXART_MEM(mgr, MSG_INBOUND_FREE_TAIL)); headptr = readl_be(MIXART_MEM(mgr, MSG_INBOUND_FREE_HEAD));