Skip to content

Commit 2f9d9a8

Browse files
nathanchancelinusw
authored andcommitted
pinctrl: nomadik: Remove unused variable in nmk_gpio_dbg_show_one
Clang warns: drivers/pinctrl/nomadik/pinctrl-nomadik.c:952:8: warning: unused variable 'wake' [-Wunused-variable] bool wake; ^ 1 warning generated. There were two wake declarations added to nmk_gpio_dbg_show_one when converting it to use irq_has_action but only one is used within its scope. Remove the unused one so there is no more warning. Fixes: f392503 ("pinctrl: nomadik: Use irq_has_action()") Reported-by: Arnd Bergmann <[email protected]> Tested-by: Andrew Halaney <[email protected]> Reviewed-by: Andrew Halaney <[email protected]> Reported-by: Hulk Robot <[email protected]> Reported-by: Ye Bin <[email protected]> Signed-off-by: Nathan Chancellor <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 92ff62a commit 2f9d9a8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/pinctrl/nomadik/pinctrl-nomadik.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,6 @@ static void nmk_gpio_dbg_show_one(struct seq_file *s,
949949
} else {
950950
int irq = chip->to_irq(chip, offset);
951951
const int pullidx = pull ? 1 : 0;
952-
bool wake;
953952
int val;
954953
static const char * const pulls[] = {
955954
"none ",

0 commit comments

Comments
 (0)