remove wrong check

This commit is contained in:
Ralph Metzler 2019-04-12 20:13:03 +02:00
parent 0248e43bc7
commit e68df13ad0
1 changed files with 0 additions and 2 deletions

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)