mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-07 22:42:04 +00:00
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: Colin Ian King <colin.king@canonical.com> Acked-by: Milo Kim <milo.kim@ti.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
This commit is contained in:
parent
fdb2f37a54
commit
9052768fe4
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user