From patchwork Mon Aug 15 05:41:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 1066702 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p7F5gTEf023768 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 15 Aug 2011 05:42:50 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QspwD-00015W-Fs; Mon, 15 Aug 2011 05:42:14 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QspwC-0004Md-Di; Mon, 15 Aug 2011 05:42:12 +0000 Received: from mail-yw0-f49.google.com ([209.85.213.49]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Qspvl-0004I4-OD for linux-arm-kernel@lists.infradead.org; Mon, 15 Aug 2011 05:41:47 +0000 Received: by ywp17 with SMTP id 17so3177599ywp.36 for ; Sun, 14 Aug 2011 22:41:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=sloUXqQwPAbK0qcVTbjK6XyY78DS5YbF2eBUbw48u8s=; b=dPF+AvYucQozOk2KCwpLRW4ofHfamk60jPLj8p6JyRXIs0WxmVvH3bCqhd8MkvMBGz EfqvpFHxltt0IqQ4AqH+R3kqo9aXG7zvbqiaOt8aAi0/G0wTkIADZ8LNLYtrj6ZleC4Z q6oXYAi1e9/h5D7w2gyK9rs4TrhdAciKZQZHw= Received: by 10.236.174.100 with SMTP id w64mr10479656yhl.255.1313386903323; Sun, 14 Aug 2011 22:41:43 -0700 (PDT) Received: from [218.172.239.16] (218-172-239-16.dynamic.hinet.net [218.172.239.16]) by mx.google.com with ESMTPS id a29sm1375129yhj.3.2011.08.14.22.41.39 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 14 Aug 2011 22:41:42 -0700 (PDT) Subject: [PATCH] [ARM] davinci: gpio: eliminate unused variable warnings From: Axel Lin To: linux-kernel@vger.kernel.org Date: Mon, 15 Aug 2011 13:41:33 +0800 Message-ID: <1313386893.25484.1.camel@phoenix> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110815_014146_123462_AB164377 X-CRM114-Status: GOOD ( 11.96 ) X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (axel.lin[at]gmail.com) -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 T_TO_NO_BRKTS_FREEMAIL To: misformatted and free email service Cc: Kevin Hilman , Russell King , Thomas Gleixner , Sekhar Nori , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 15 Aug 2011 05:42:57 +0000 (UTC) Since commit 5093aec872e5be7a55d8dd2b639e8a3818dc19db "arm: davinci: Cleanup irq chip code", the variable 'mask' and 'g' are not being used in gpio_irq_type. This patch eliminate below unused variable warnings: CC arch/arm/mach-davinci/gpio.o arch/arm/mach-davinci/gpio.c: In function 'gpio_irq_type': arch/arm/mach-davinci/gpio.c:234: warning: unused variable 'mask' arch/arm/mach-davinci/gpio.c:233: warning: unused variable 'g' Signed-off-by: Axel Lin --- arch/arm/mach-davinci/gpio.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-davinci/gpio.c b/arch/arm/mach-davinci/gpio.c index a8066e8..df0d595 100644 --- a/arch/arm/mach-davinci/gpio.c +++ b/arch/arm/mach-davinci/gpio.c @@ -230,9 +230,6 @@ static void gpio_irq_enable(struct irq_data *d) static int gpio_irq_type(struct irq_data *d, unsigned trigger) { - struct davinci_gpio_regs __iomem *g = irq2regs(d->irq); - u32 mask = (u32) irq_data_get_irq_handler_data(d); - if (trigger & ~(IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)) return -EINVAL;