summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2016-02-27 15:54:11 +0300
committerSebastian Reichel <sre@kernel.org>2016-03-03 17:01:49 +0300
commit9052768fe4a4ca773e48654b1dc4297a298e76b9 (patch)
tree0128a550c8d96fea1e99d8ef693bb9fa1face3f4 /drivers/power
parentfdb2f37a54470473c6b7c9d680c4c114dd9bc434 (diff)
downloadlinux-9052768fe4a4ca773e48654b1dc4297a298e76b9.tar.xz
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>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/lp8788-charger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/lp8788-charger.c b/drivers/power/lp8788-charger.c
index f5a48fd68b01..7321b727d484 100644
--- a/drivers/power/lp8788-charger.c
+++ b/drivers/power/lp8788-charger.c
@@ -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++) {