From f6cb837721425000fc666ef350b77d400a08f584 Mon Sep 17 00:00:00 2001 From: Priyanka Singh Date: Tue, 27 Oct 2020 15:50:14 +0530 Subject: [PATCH] board: freescale: vid.c: Initialize variable 'i2caddress' Initialize variable 'i2caddress' in adjust_vdd() to zero Signed-off-by: Priyanka Singh Reviewed-by: Priyanka Jain --- board/freescale/common/vid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/freescale/common/vid.c b/board/freescale/common/vid.c index 77a3be68ef..2617f61520 100644 --- a/board/freescale/common/vid.c +++ b/board/freescale/common/vid.c @@ -485,7 +485,7 @@ int adjust_vdd(ulong vdd_override) u8 vid; #endif int vdd_target, vdd_current, vdd_last; - int ret, i2caddress; + int ret, i2caddress = 0; unsigned long vdd_string_override; char *vdd_string; #if defined(CONFIG_ARCH_LX2160A) || defined(CONFIG_ARCH_LX2162A) -- 2.39.5