[PATCH 1/1] board: freescale: vid.c: Initialize variable 'i2caddress'

Priyanka Singh priyanka.singh at nxp.com
Fri Oct 16 11:15:44 CEST 2020


Initialize variable 'i2caddress' in print_vdd() to zero

Signed-off-by: Priyanka Singh <priyanka.singh at nxp.com>
---
 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 43b5d8ebd7..bfd24c43b4 100644
--- a/board/freescale/common/vid.c
+++ b/board/freescale/common/vid.c
@@ -891,7 +891,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) {
-- 
2.17.1



More information about the U-Boot mailing list