mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-08 14:13:53 +00:00
gpio: Fix uninitialized variable bit in adp5588_irq_handler
The variable 'bit' is uninitialized in the first iteration of for loop. Fix it. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
parent
3ffc9cebb6
commit
078dc65e61
@ -252,7 +252,7 @@ static irqreturn_t adp5588_irq_handler(int irq, void *devid)
|
||||
if (ret < 0)
|
||||
memset(dev->irq_stat, 0, ARRAY_SIZE(dev->irq_stat));
|
||||
|
||||
for (bank = 0; bank <= ADP5588_BANK(ADP5588_MAXGPIO);
|
||||
for (bank = 0, bit = 0; bank <= ADP5588_BANK(ADP5588_MAXGPIO);
|
||||
bank++, bit = 0) {
|
||||
pending = dev->irq_stat[bank] & dev->irq_mask[bank];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user