]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: freescale: vid.c: Initialize variable 'i2caddress'
authorPriyanka Singh <priyanka.singh@nxp.com>
Fri, 16 Oct 2020 09:15:44 +0000 (14:45 +0530)
committerPriyanka Jain <priyanka.jain@nxp.com>
Fri, 23 Oct 2020 11:22:09 +0000 (16:52 +0530)
Initialize variable 'i2caddress' in print_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 20c97aa1ef11c69f5bde6a286d753981f29a44e4..bf8a5d893f4fe07eafca18cff954ebbe0632ebe4 100644 (file)
@@ -892,7 +892,7 @@ exit:
 
 static int print_vdd(void)
 {
-       int vdd_last, ret, i2caddress;
+       int vdd_last, ret, i2caddress = 0;
 
        ret = i2c_multiplexer_select_vid_channel(I2C_MUX_CH_VOL_MONITOR);
        if (ret) {