projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b124c8b
)
pinctrl: bcm2835: Silence uninit warning
author
Linus Walleij
<linus.walleij@linaro.org>
Thu, 9 Dec 2021 13:45:13 +0000
(14:45 +0100)
committer
Linus Walleij
<linus.walleij@linaro.org>
Thu, 9 Dec 2021 23:17:06 +0000
(
00:17
+0100)
The uninitialized variable would be caught by the BUG_ON()
logic below, but the kernel test robot cannot see that.
Silence the warning by initializing the variable.
Reported-by: kernel test robot <lkp@intel.com>
Link:
https://lore.kernel.org/r/20211209134513.306212-1-linus.walleij@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/bcm/pinctrl-bcm2835.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/bcm/pinctrl-bcm2835.c
b/drivers/pinctrl/bcm/pinctrl-bcm2835.c
index 2abcc6ce4eba338b1c62ef6f9f8db1b428ce0fa1..e473fc1509d32f57fae80d4cc88d38e9638a5708 100644
(file)
--- a/
drivers/pinctrl/bcm/pinctrl-bcm2835.c
+++ b/
drivers/pinctrl/bcm/pinctrl-bcm2835.c
@@
-407,7
+407,7
@@
static void bcm2835_gpio_irq_handler(struct irq_desc *desc)
struct bcm2835_pinctrl *pc = gpiochip_get_data(chip);
struct irq_chip *host_chip = irq_desc_get_chip(desc);
int irq = irq_desc_get_irq(desc);
- int group;
+ int group
= 0
;
int i;
for (i = 0; i < BCM2835_NUM_IRQS; i++) {