1
0
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:
Ralph Metzler 2019-04-12 20:13:03 +02:00
parent 0248e43bc7
commit e68df13ad0

View File

@ -3495,8 +3495,6 @@ static long ddb_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
struct i2c_adapter *adap;
u8 *mbuf, *hbuf = &dev->iobuf[0];
if (!dev->link[0].info->regmap->i2c)
return -EINVAL;
if (copy_from_user(&i2c, parg, sizeof(i2c)))
return -EFAULT;
if (i2c.bus > dev->i2c_num)