From e68df13ad09774d6e69cbf91c6f82e0481ff2ccb Mon Sep 17 00:00:00 2001 From: Ralph Metzler Date: Fri, 12 Apr 2019 20:13:03 +0200 Subject: [PATCH] remove wrong check --- ddbridge/ddbridge-core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ddbridge/ddbridge-core.c b/ddbridge/ddbridge-core.c index d540e92..d2412fd 100644 --- a/ddbridge/ddbridge-core.c +++ b/ddbridge/ddbridge-core.c @@ -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)