Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1564937 > unrolled thread

[PATCH] pinctrl: mvebu: remove unused variable

Started byArnd Bergmann <arnd@arndb.de>
First post2017-01-23 13:20 +0100
Last post2017-01-26 15:20 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] pinctrl: mvebu: remove unused variable Arnd Bergmann <arnd@arndb.de> - 2017-01-23 13:20 +0100
    Re: [PATCH] pinctrl: mvebu: remove unused variable Linus Walleij <linus.walleij@linaro.org> - 2017-01-26 15:20 +0100

#1564937 — [PATCH] pinctrl: mvebu: remove unused variable

FromArnd Bergmann <arnd@arndb.de>
Date2017-01-23 13:20 +0100
Subject[PATCH] pinctrl: mvebu: remove unused variable
Message-ID<t2LLk-6l3-5@gated-at.bofh.it>
A cleanup caused a harmless warning:

drivers/pinctrl/mvebu/pinctrl-kirkwood.c: In function 'kirkwood_pinctrl_probe':
drivers/pinctrl/mvebu/pinctrl-kirkwood.c:460:19: error: unused variable 'res' [-Werror=unused-variable]

The obvious fix is to remove the declaration of the now unused
variable.

Fixes: ad9ec4ecee68 ("pinctrl: mvebu: switch drivers to generic simple mmio")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/pinctrl/mvebu/pinctrl-kirkwood.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/pinctrl/mvebu/pinctrl-kirkwood.c b/drivers/pinctrl/mvebu/pinctrl-kirkwood.c
index dad38d6dc646..be12b6d569a0 100644
--- a/drivers/pinctrl/mvebu/pinctrl-kirkwood.c
+++ b/drivers/pinctrl/mvebu/pinctrl-kirkwood.c
@@ -457,7 +457,6 @@ static const struct of_device_id kirkwood_pinctrl_of_match[] = {
 
 static int kirkwood_pinctrl_probe(struct platform_device *pdev)
 {
-	struct resource *res;
 	const struct of_device_id *match =
 		of_match_device(kirkwood_pinctrl_of_match, &pdev->dev);
 
-- 
2.9.0

[toc] | [next] | [standalone]


#1567453

FromLinus Walleij <linus.walleij@linaro.org>
Date2017-01-26 15:20 +0100
Message-ID<t3T46-8qV-5@gated-at.bofh.it>
In reply to#1564937
On Mon, Jan 23, 2017 at 1:17 PM, Arnd Bergmann <arnd@arndb.de> wrote:

> A cleanup caused a harmless warning:
>
> drivers/pinctrl/mvebu/pinctrl-kirkwood.c: In function 'kirkwood_pinctrl_probe':
> drivers/pinctrl/mvebu/pinctrl-kirkwood.c:460:19: error: unused variable 'res' [-Werror=unused-variable]
>
> The obvious fix is to remove the declaration of the now unused
> variable.
>
> Fixes: ad9ec4ecee68 ("pinctrl: mvebu: switch drivers to generic simple mmio")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Patch applied.

Yours,
Linus Walleij

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web