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

Priyanka Singh priyanka.singh at nxp.com
Tue Oct 27 11:20:14 CET 2020


Initialize variable 'i2caddress' in adjust_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 bfd24c43b4..755108e385 100644
--- a/board/freescale/common/vid.c
+++ b/board/freescale/common/vid.c
@@ -447,7 +447,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.17.1



More information about the U-Boot mailing list