mfd: lp8788-irq: Uninitialized variable in irq handler
Instead to being true/false, the "handled" is true/uninitialized.
Presumably this doesn't cause that many problems in real life because
normally we handle the IRQ.
Fixes: eea6b7cc53
('mfd: Add lp8788 mfd driver')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Milo Kim <milo.kim@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
adae28c59a
commit
22aab38e7b
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ static irqreturn_t lp8788_irq_handler(int irq, void *ptr)
|
|||
struct lp8788_irq_data *irqd = ptr;
|
||||
struct lp8788 *lp = irqd->lp;
|
||||
u8 status[NUM_REGS], addr, mask;
|
||||
bool handled;
|
||||
bool handled = false;
|
||||
int i;
|
||||
|
||||
if (lp8788_read_multi_bytes(lp, LP8788_INT_1, status, NUM_REGS))
|
||||
|
|
Loading…
Reference in a new issue