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
parent
d95b6b9740
commit
8063964e4f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue