Staging: comedi: Don't check for -ENOIOCTLCMD
unlocked_ioctl() never returns -ENOIOCTLCMD so remove the check. Signed-off-by: Shawn Bohrer <shawn.bohrer@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5d7ae22554
commit
a6279bc9e4
@@ -97,12 +97,9 @@ static int translated_ioctl(struct file *file, unsigned int cmd,
|
|||||||
if (!file->f_op)
|
if (!file->f_op)
|
||||||
return -ENOTTY;
|
return -ENOTTY;
|
||||||
|
|
||||||
if (file->f_op->unlocked_ioctl) {
|
if (file->f_op->unlocked_ioctl)
|
||||||
int rc = (int)(*file->f_op->unlocked_ioctl) (file, cmd, arg);
|
return file->f_op->unlocked_ioctl(file, cmd, arg);
|
||||||
if (rc == -ENOIOCTLCMD)
|
|
||||||
rc = -ENOTTY;
|
|
||||||
return rc;
|
|
||||||
}
|
|
||||||
return -ENOTTY;
|
return -ENOTTY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user