From patchwork Thu Sep 1 14:48:08 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 1119432 Received: from comal.ext.ti.com (comal.ext.ti.com [198.47.26.152]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p81FDtiF004020 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 1 Sep 2011 15:14:17 GMT Received: from dlep36.itg.ti.com ([157.170.170.91]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id p81FC7DW029681 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 1 Sep 2011 10:12:07 -0500 Received: from linux.omap.com (smtp-le.itg.ti.com [157.170.170.27]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id p81FC6E5010588; Thu, 1 Sep 2011 10:12:06 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 77ED380627; Thu, 1 Sep 2011 10:12:06 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp52.itg.ti.com (dflp52.itg.ti.com [128.247.22.96]) by linux.omap.com (Postfix) with ESMTP id BA9B380626 for ; Thu, 1 Sep 2011 09:48:19 -0500 (CDT) Received: from neches.ext.ti.com (neches.ext.ti.com [192.91.81.29]) by dflp52.itg.ti.com (8.13.7/8.13.8) with ESMTP id p81EmJhC022897 for ; Thu, 1 Sep 2011 09:48:19 -0500 (CDT) Received: from psmtp.com (na3sys009amx167.postini.com [74.125.149.93]) by neches.ext.ti.com (8.13.7/8.13.7) with SMTP id p81EmIxm028236 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 1 Sep 2011 09:48:19 -0500 Received: from mail-vw0-f45.google.com ([209.85.212.45]) (using TLSv1) by na3sys009amx167.postini.com ([74.125.148.10]) with SMTP; Thu, 01 Sep 2011 14:48:19 GMT Received: by vws17 with SMTP id 17so1592989vws.4 for ; Thu, 01 Sep 2011 07:48:17 -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=MtOGrQ23xHz1uX7HmtvUHuReCNBidKERmDowFxZs1wo=; b=LXtRrmlVkb7dPmhzgUO1HIMLx1xXwBfIYhRXad8xFyG76g8mVuPGL6R7yDEzldqbEp jOmnHzhlDdB691p4eeOwjSsd3lXfNaIfdbHEg9JBlfNnfE4Zd4yDbTjsarpf25aYngJs nlO4F/gYjEH1SZfmnXkFkmzxWFN0/NN5om5MY= Received: by 10.52.70.51 with SMTP id j19mr297897vdu.99.1314888497853; Thu, 01 Sep 2011 07:48:17 -0700 (PDT) Received: from [218.172.237.81] (218-172-237-81.dynamic.hinet.net [218.172.237.81]) by mx.google.com with ESMTPS id cc1sm75606vdc.20.2011.09.01.07.48.13 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 Sep 2011 07:48:16 -0700 (PDT) Subject: [PATCH] gpio: davinci: eliminate unused variable warnings From: Axel Lin To: linux-kernel@vger.kernel.org Date: Thu, 01 Sep 2011 22:48:08 +0800 Message-ID: <1314888488.11908.1.camel@phoenix> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 X-pstn-neptune: 0/0/0.00/0 X-pstn-levels: (S:85.85822/99.90000 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 ) X-pstn-settings: 2 (0.5000:0.0750) s cv GT3 gt2 gt1 r p m c X-pstn-addresses: from [35/1] X-Mailman-Approved-At: Thu, 01 Sep 2011 10:12:05 -0500 Cc: Grant Likely , davinci-linux-open-source@linux.davincidsp.com X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: davinci-linux-open-source-bounces@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 01 Sep 2011 15:14:17 +0000 (UTC) Since commit 5093aec872e5be7a55d8dd2b639e8a3818dc19db "arm: davinci: Cleanup irq chip code", the variable 'mask' and 'g' are not being used. This patch eliminates below unused variable warnings: CC drivers/gpio/gpio-davinci.o drivers/gpio/gpio-davinci.c: In function 'gpio_irq_type': drivers/gpio/gpio-davinci.c:234: warning: unused variable 'mask' drivers/gpio/gpio-davinci.c:233: warning: unused variable 'g' Signed-off-by: Axel Lin --- drivers/gpio/gpio-davinci.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c index a8066e8..df0d595 100644 --- a/drivers/gpio/gpio-davinci.c +++ b/drivers/gpio/gpio-davinci.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;