summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--samples/vfio-mdev/mtty.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/samples/vfio-mdev/mtty.c b/samples/vfio-mdev/mtty.c
index 382f4797428f..ca495686b9c3 100644
--- a/samples/vfio-mdev/mtty.c
+++ b/samples/vfio-mdev/mtty.c
@@ -1230,9 +1230,6 @@ static long mtty_ioctl(struct mdev_device *mdev, unsigned int cmd,
if (ret)
return ret;
- if (info.count == -1)
- return -EINVAL;
-
if (copy_to_user((void __user *)arg, &info, minsz))
return -EFAULT;