提交 c216b870 编写于 作者: W Wolfram Sang

i2c: ibm_iic: don't check number of messages in the driver

Since commit 1eace834 ("i2c: add param sanity check to
i2c_transfer()"), the I2C core does this check now. We can remove it
from drivers.
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
Reviewed-by: NPeter Rosin <peda@axentia.se>
上级 ef9fc0ba
...@@ -561,9 +561,6 @@ static int iic_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) ...@@ -561,9 +561,6 @@ static int iic_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
DBG2("%d: iic_xfer, %d msg(s)\n", dev->idx, num); DBG2("%d: iic_xfer, %d msg(s)\n", dev->idx, num);
if (!num)
return 0;
/* Check the sanity of the passed messages. /* Check the sanity of the passed messages.
* Uhh, generic i2c layer is more suitable place for such code... * Uhh, generic i2c layer is more suitable place for such code...
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册