public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pinctrl/pinctrl-u300: remove unused variable i
@ 2012-06-18 17:47 Devendra Naga
  2012-06-20  8:00 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Devendra Naga @ 2012-06-18 17:47 UTC (permalink / raw)
  To: Linus Walleij, linux-kernel; +Cc: Devendra Naga

the unused variable warning was thrown when compiled using the
gcc for ARM (arm-linux-gnueabihf-gcc) with u300_defconfig selected,

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- u300_defconfig

and then

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

gives the following warn,

drivers/pinctrl/pinctrl-u300.c: In function ‘u300_pmx_remove’:
drivers/pinctrl/pinctrl-u300.c:1178:6: warning: unused variable ‘i’ [-Wunused-variable]

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
---
 drivers/pinctrl/pinctrl-u300.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/pinctrl/pinctrl-u300.c b/drivers/pinctrl/pinctrl-u300.c
index 49b91c2..2ba13c5 100644
--- a/drivers/pinctrl/pinctrl-u300.c
+++ b/drivers/pinctrl/pinctrl-u300.c
@@ -1175,7 +1175,6 @@ out_no_resource:
 static int __devexit u300_pmx_remove(struct platform_device *pdev)
 {
 	struct u300_pmx *upmx = platform_get_drvdata(pdev);
-	int i;
 
 	pinctrl_unregister(upmx->pctl);
 	iounmap(upmx->virtbase);
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] pinctrl/pinctrl-u300: remove unused variable i
  2012-06-18 17:47 [PATCH] pinctrl/pinctrl-u300: remove unused variable i Devendra Naga
@ 2012-06-20  8:00 ` Linus Walleij
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2012-06-20  8:00 UTC (permalink / raw)
  To: Devendra Naga; +Cc: linux-kernel

On Mon, Jun 18, 2012 at 7:47 PM, Devendra Naga <devendra.aaru@gmail.com> wrote:

> the unused variable warning was thrown when compiled using the
> gcc for ARM (arm-linux-gnueabihf-gcc) with u300_defconfig selected,
>
> make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- u300_defconfig
>
> and then
>
> make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
>
> gives the following warn,
>
> drivers/pinctrl/pinctrl-u300.c: In function ‘u300_pmx_remove’:
> drivers/pinctrl/pinctrl-u300.c:1178:6: warning: unused variable ‘i’ [-Wunused-variable]
>
> Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>

Incidentally I was working on this code and fixed the same issue,
but thanks anyway!

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-20  8:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-18 17:47 [PATCH] pinctrl/pinctrl-u300: remove unused variable i Devendra Naga
2012-06-20  8:00 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox