提交 0eaddd7c 编写于 作者: W Wolfram Sang 提交者: Mauro Carvalho Chehab

media: hdpvr: 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>
Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
上级 decb9f22
......@@ -117,9 +117,6 @@ static int hdpvr_transfer(struct i2c_adapter *i2c_adapter, struct i2c_msg *msgs,
struct hdpvr_device *dev = i2c_get_adapdata(i2c_adapter);
int retval = 0, addr;
if (num <= 0)
return 0;
mutex_lock(&dev->i2c_mutex);
addr = msgs[0].addr << 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册