mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
remove wrong check
This commit is contained in:
parent
0248e43bc7
commit
e68df13ad0
@ -3495,8 +3495,6 @@ static long ddb_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
|||||||
struct i2c_adapter *adap;
|
struct i2c_adapter *adap;
|
||||||
u8 *mbuf, *hbuf = &dev->iobuf[0];
|
u8 *mbuf, *hbuf = &dev->iobuf[0];
|
||||||
|
|
||||||
if (!dev->link[0].info->regmap->i2c)
|
|
||||||
return -EINVAL;
|
|
||||||
if (copy_from_user(&i2c, parg, sizeof(i2c)))
|
if (copy_from_user(&i2c, parg, sizeof(i2c)))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
if (i2c.bus > dev->i2c_num)
|
if (i2c.bus > dev->i2c_num)
|
||||||
|
Loading…
Reference in New Issue
Block a user