projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef9fc0b
)
i2c: ibm_iic: don't check number of messages in the driver
author
Wolfram Sang
<wsa@the-dreams.de>
Sun, 20 May 2018 06:50:33 +0000
(08:50 +0200)
committer
Wolfram Sang
<wsa@the-dreams.de>
Thu, 24 May 2018 20:05:54 +0000
(22:05 +0200)
Since commit
1eace8344c02
("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>
drivers/i2c/busses/i2c-ibm_iic.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-ibm_iic.c
b/drivers/i2c/busses/i2c-ibm_iic.c
index 961c5f42d956f11fe1e87b95aaf50339959e7014..6f6e1dfe7ccee3982d4e824215b53ef2e48772ff 100644
(file)
--- a/
drivers/i2c/busses/i2c-ibm_iic.c
+++ b/
drivers/i2c/busses/i2c-ibm_iic.c
@@
-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...
*/