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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Priyanka Singh
Initialize variable 'i2caddress' in print_vdd() to zero

Signed-off-by: Priyanka Singh <[hidden email]>
---
 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