Commit af906fa
committed
Input: gpio_keys - fix warning regarding uninitialized 'irq' variable
Commit f2d347f ("Input: gpio_keys - add device tree support for
interrupt only keys") caused the following build warning:
drivers/input/keyboard/gpio_keys.c: In function 'gpio_keys_probe':
drivers/input/keyboard/gpio_keys.c:647:15: warning: 'irq' may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/input/keyboard/gpio_keys.c:622:7: note: 'irq' was declared here
Move button->irq initialization into proper branch and get rid of the
temporary.
Reported-by: Olof's autobuilder <[email protected]>
Reported-by: Fabio Estevam <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>1 parent 823a11f commit af906fa
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
622 | | - | |
623 | 622 | | |
624 | 623 | | |
625 | 624 | | |
626 | | - | |
627 | | - | |
| 625 | + | |
| 626 | + | |
628 | 627 | | |
629 | 628 | | |
630 | 629 | | |
| |||
644 | 643 | | |
645 | 644 | | |
646 | 645 | | |
647 | | - | |
648 | 646 | | |
649 | 647 | | |
650 | 648 | | |
| |||
0 commit comments