MLK-20196-1 i2c: xen-i2cback: fix num_msg usage
authorPeng Fan <peng.fan@nxp.com>
Mon, 5 Nov 2018 08:57:34 +0000 (16:57 +0800)
committerPeng Fan <peng.fan@nxp.com>
Fri, 19 Jul 2019 08:48:26 +0000 (16:48 +0800)
commit8c4f87428eb0ea41f420321a6a3fd17f8833b250
tree477093e57ac0e7e9b3099890f56b2b1e7a452ad5
parent738b4bcd93b8e5e241889fa2d8c35e8734ffd750
MLK-20196-1 i2c: xen-i2cback: fix num_msg usage

When req.num_msg is less than 2, also need initialze num_msg.
Also modify the if/else if to use num_msg

Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 0ce331ed4a1dbbe8c1be4ee69e0f4d8f46c8fc53)
drivers/i2c/busses/xen-i2cback.c