Commit 9052768f authored by Colin Ian King's avatar Colin Ian King Committed by Sebastian Reichel

power_supply: lp8788-charger: initialize boolean 'found'

The boolean 'found' is not initialized and hence garbage. It should
be initialized as false.

Found with static analysis using CoverityScan
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarMilo Kim <milo.kim@ti.com>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent fdb2f37a
......@@ -455,7 +455,7 @@ static void lp8788_charger_event(struct work_struct *work)
static bool lp8788_find_irq_id(struct lp8788_charger *pchg, int virq, int *id)
{
bool found;
bool found = false;
int i;
for (i = 0; i < pchg->num_irqs; i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment