summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-02-18 08:45:59 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-02-18 23:52:39 +0000
commit59e366ef6348ba6a3b03dbbe09b5b218210f733c (patch)
treef6c96917b23de04d2bafd52cc41b83a1bcd033d4
parent724b3ef91e433d3dd62fd41ad15acf0ffb6ffb81 (diff)
downloadchrome-ec-59e366ef6348ba6a3b03dbbe09b5b218210f733c.tar.gz
samus: initiailze boostin_voltage in extpower module
Fix complile bug, initialize local var boostin_voltage. BUG=none BRANCH=samus TEST=make -j buildall Change-Id: Ie178d3bfe164fc900b1c52a05412f75d5a090ddd Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/250820 (cherry picked from commit 54f01a6c030ed7608a4bf0d673740a0dca24a52f) Reviewed-on: https://chromium-review.googlesource.com/250821 Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r--board/samus/extpower.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/samus/extpower.c b/board/samus/extpower.c
index 3947dc7de9..1da30de076 100644
--- a/board/samus/extpower.c
+++ b/board/samus/extpower.c
@@ -289,7 +289,7 @@ static int log_charge_wedged(void)
static void check_charge_wedged(void)
{
- int rv, prochot_status, batt_discharging_on_ac, boostin_voltage;
+ int rv, prochot_status, batt_discharging_on_ac, boostin_voltage = 0;
static int counts_since_wedged;
static int charge_stalled_count = CHARGE_STALLED_COUNT;
uint8_t *batt_flags = host_get_memmap(EC_MEMMAP_BATT_FLAG);