diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2018-05-20 02:50:33 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-07-27 06:39:57 -0400 |
commit | a6e65c2ce8970db5a8d0536774ccb9346e69b064 (patch) | |
tree | 51898a8b1cf49a46908178a500d396da7f77a7e5 /drivers | |
parent | 4e4ddfd8e3123cdac71c6f97c35427cc5daeb1bf (diff) | |
download | linux-a6e65c2ce8970db5a8d0536774ccb9346e69b064.tar.gz linux-a6e65c2ce8970db5a8d0536774ccb9346e69b064.tar.bz2 linux-a6e65c2ce8970db5a8d0536774ccb9346e69b064.zip |
media: si4713: don't check number of messages in the driver
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>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/radio/si4713/radio-usb-si4713.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/media/radio/si4713/radio-usb-si4713.c b/drivers/media/radio/si4713/radio-usb-si4713.c index 05c66701a899..1ebbf0217142 100644 --- a/drivers/media/radio/si4713/radio-usb-si4713.c +++ b/drivers/media/radio/si4713/radio-usb-si4713.c @@ -370,9 +370,6 @@ static int si4713_transfer(struct i2c_adapter *i2c_adapter, int retval = -EINVAL; int i; - if (num <= 0) - return 0; - for (i = 0; i < num; i++) { if (msgs[i].flags & I2C_M_RD) retval = si4713_i2c_read(radio, msgs[i].buf, msgs[i].len); |