1
0
Fork 0

MLK-20319 i2c:xen-i2cfront: fix uninitalized variable

Fix uninitalized variable

Signed-off-by: Flynn xu <flynn.xu@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
pull/10/head
Flynn xu 2018-11-12 13:43:56 +08:00
parent d95b6b9740
commit 8063964e4f
1 changed files with 1 additions and 0 deletions

View File

@ -76,6 +76,7 @@ static int i2cfront_do_req(struct i2c_adapter *adapter, struct i2c_msg *msg,
for (index = 0; index < num; index++) {
req->msg[index].addr = msg[index].addr;
req->msg[index].len = msg[index].len;
req->msg[index].flags = 0;
if (msg[index].flags & I2C_M_RD)
req->msg[index].flags |= I2CIF_M_RD;
if (msg[index].flags & I2C_M_TEN)