]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mfd: lp8788-irq: Uninitialized variable in irq handler
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 11 Mar 2016 08:11:39 +0000 (11:11 +0300)
committerLee Jones <lee.jones@linaro.org>
Mon, 11 Apr 2016 12:31:40 +0000 (13:31 +0100)
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: eea6b7cc53aa ('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>
drivers/mfd/lp8788-irq.c

index c7a9825aa4ce42a8f358834b529657374e2a47b8..792d51bae20f5109c5b42d99c652d004e8d332f9 100644 (file)
@@ -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))