mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
i2c: ibm_iic: don't check number of messages in the driver
Since commit 1eace8344c
("i2c: add param sanity check to
i2c_transfer()"), the I2C core does this check now. We can remove it
from drivers.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Reviewed-by: Peter Rosin <peda@axentia.se>
This commit is contained in:
parent
ef9fc0bad5
commit
c216b87065
1 changed files with 0 additions and 3 deletions
|
@ -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);
|
||||
|
||||
if (!num)
|
||||
return 0;
|
||||
|
||||
/* Check the sanity of the passed messages.
|
||||
* Uhh, generic i2c layer is more suitable place for such code...
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue