diff mbox series

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

Message ID 20201027102014.31815-1-priyanka.singh@nxp.com
State New
Delegated to: Priyanka Jain
Headers show
Series [1/1] board: freescale: vid.c: Initialize variable 'i2caddress' | expand

Commit Message

Priyanka Singh Oct. 27, 2020, 10:20 a.m. UTC
Initialize variable 'i2caddress' in adjust_vdd() to zero

Signed-off-by: Priyanka Singh <priyanka.singh@nxp.com>
---
 board/freescale/common/vid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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)