aboutsummaryrefslogtreecommitdiff
path: root/drivers/i2c/i2c_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c/i2c_core.c')
-rw-r--r--drivers/i2c/i2c_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/i2c_core.c b/drivers/i2c/i2c_core.c
index d34b749a565..4539667eaea 100644
--- a/drivers/i2c/i2c_core.c
+++ b/drivers/i2c/i2c_core.c
@@ -178,7 +178,7 @@ static int i2c_mux_disconnet_all(void)
{
struct i2c_bus_hose *i2c_bus_tmp = &i2c_bus[I2C_BUS];
int i;
- uint8_t buf;
+ uint8_t buf = 0;
if (I2C_ADAP->init_done == 0)
return 0;