board/rtl8721csm/i2c_api.c : Initialize local variable
WID:12571040 Uninitialized data is read from local variable 'i2cen' at i2c_api.c:704.
@@ -669,7 +669,7 @@ void i2c_reset(i2c_t *obj)
*/
void i2c_restart_enable(i2c_t *obj)
{
- uint32_t i2cen;
+ uint32_t i2cen = 0;
if (obj->I2Cx->IC_ENABLE & BIT_CTRL_IC_ENABLE) {
I2C_Cmd(obj->I2Cx, DISABLE);
@@ -692,7 +692,7 @@ void i2c_restart_enable(i2c_t *obj)
*/
void i2c_restart_disable(i2c_t *obj)
{
- uint32_t i2cen;
+ uint32_t i2cen = 0;
if (obj->I2Cx->IC_ENABLE & BIT_CTRL_IC_ENABLE) {
I2C_Cmd(obj->I2Cx, DISABLE);
