]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: freescale: vid.c: Initialize variable 'i2caddress'
authorPriyanka Singh <priyanka.singh@nxp.com>
Tue, 27 Oct 2020 10:20:14 +0000 (15:50 +0530)
committerPriyanka Jain <priyanka.jain@nxp.com>
Thu, 10 Dec 2020 08:26:39 +0000 (13:56 +0530)
Initialize variable 'i2caddress' in adjust_vdd() to zero

Signed-off-by: Priyanka Singh <priyanka.singh@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
board/freescale/common/vid.c

index 77a3be68ef78abfbdf8d97967ff7c29a0a78b075..2617f61520b1463d67335ac51d3c58372e8e4a32 100644 (file)
@@ -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)