1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

remove check for MCI base

This commit is contained in:
none 2021-02-24 20:27:42 +01:00
parent baf6a090b8
commit c6ada48892

View File

@ -3457,8 +3457,6 @@ static long ddb_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
if (msg.link > 3) if (msg.link > 3)
return -EFAULT; return -EFAULT;
link = &dev->link[msg.link]; link = &dev->link[msg.link];
if (!link->mci_base)
return -EFAULT;
res = ddb_mci_cmd_link(link, &msg.cmd, &msg.res); res = ddb_mci_cmd_link(link, &msg.cmd, &msg.res);
if (copy_to_user(parg, &msg, sizeof(msg))) if (copy_to_user(parg, &msg, sizeof(msg)))
return -EFAULT; return -EFAULT;