From: Priyanka Singh Date: Tue, 27 Oct 2020 10:20:14 +0000 (+0530) Subject: board: freescale: vid.c: Initialize variable 'i2caddress' X-Git-Tag: v2025.01-rc5-pxa1908~2103^2~11 X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/%7B%7B%20%24style.Permalink%20%7D%7D?a=commitdiff_plain;h=f6cb837721425000fc666ef350b77d400a08f584;p=u-boot.git board: freescale: vid.c: Initialize variable 'i2caddress' Initialize variable 'i2caddress' in adjust_vdd() to zero Signed-off-by: Priyanka Singh Reviewed-by: Priyanka Jain --- 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)