pinctrl: nomadik: remove an unused variable
Subsystems (3)
PATCH 1/1 pinctrl: nomadik: remove an unused variable
From: Arnd Bergmann <[email protected]>
A recent patch added a local variable twice:
drivers/pinctrl/nomadik/pinctrl-nomadik.c:953:8: error: unused variable 'wake' [-Werror,-Wunused-variable]
Remove the unused outer declaration
--- drivers/pinctrl/nomadik/pinctrl-nomadik.c | 1 - 1 file changed, 1 deletion(-)
drivers/pinctrl/nomadik/pinctrl-nomadik.c +0 -1
@@ -949,7 +949,6 @@ static void nmk_gpio_dbg_show_one(struct seq_file *s, }else {int irq = chip->to_irq (chip, offset);const int pullidx = pull ?1 :0 ; -bool wake;int val;static const char *const pulls[] = { "none ",
Signature · 1 line
2.29.2
Quoted 29 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
A recent patch added a local variable twice:
drivers/pinctrl/nomadik/pinctrl-nomadik.c:953:8: error: unused variable 'wake' [-Werror,-Wunused-variable]Remove the unused outer declaration
Fixes f3925032d7fd ("pinctrl: nomadik: Use irq_has_action()")Signed-off-by Arnd Bergmann <[email protected]>--- drivers/pinctrl/nomadik/pinctrl-nomadik.c | 1 - 1 file changed, 1 deletion(-)drivers/pinctrl/nomadik/pinctrl-nomadik.c +0
-1@@ -949,7 +949,6 @@ static void nmk_gpio_dbg_show_one(struct seq_file *s, }else {int irq = chip->to_irq (chip, offset);const int pullidx = pull ?1 :0 ; -bool wake;int val;static const char *const pulls[] = { "none ",Signature · 1 line
2.29.2
Got rid of the warning for me, I don't have hardware to test on but I don't think that's necessary for this.
Thanks,
Andrew
Quoted 10 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
A recent patch added a local variable twice:
drivers/pinctrl/nomadik/pinctrl-nomadik.c:953:8: error: unused variable 'wake' [-Werror,-Wunused-variable]Remove the unused outer declaration
Fixes f3925032d7fd ("pinctrl: nomadik: Use irq_has_action()")Signed-off-by Arnd Bergmann <[email protected]>
I got an identical patch from Nathan Chancellor on dec 29 :D
I'll add your reported-by and Andrews tags.
Yours,
Linus Walleij