diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2021-12-09 14:45:13 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2021-12-10 00:17:06 +0100 |
commit | dc1b242478f47d04a41f319a14f163711c52646a (patch) | |
tree | bd3b068590512c188dbbbb1bb5cfedce5b8f4a31 /drivers/pinctrl | |
parent | b124c8bd50c7550ed966c09f69ffdbaaedc0aa15 (diff) | |
download | linux-stable-dc1b242478f47d04a41f319a14f163711c52646a.tar.gz linux-stable-dc1b242478f47d04a41f319a14f163711c52646a.tar.bz2 linux-stable-dc1b242478f47d04a41f319a14f163711c52646a.zip |
pinctrl: bcm2835: Silence uninit warning
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>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/bcm/pinctrl-bcm2835.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/bcm/pinctrl-bcm2835.c b/drivers/pinctrl/bcm/pinctrl-bcm2835.c index 2abcc6ce4eba..e473fc1509d3 100644 --- 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++) { |