projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdb2f37
)
power_supply: lp8788-charger: initialize boolean 'found'
author
Colin Ian King
<colin.king@canonical.com>
Sat, 27 Feb 2016 12:54:11 +0000
(12:54 +0000)
committer
Sebastian Reichel
<sre@kernel.org>
Thu, 3 Mar 2016 14:01:49 +0000
(15:01 +0100)
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>
drivers/power/lp8788-charger.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/power/lp8788-charger.c
b/drivers/power/lp8788-charger.c
index f5a48fd68b01249beb0854a8877ace9aa2011344..7321b727d484555a2befa146a2deb910d808b49d 100644
(file)
--- 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++) {