Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73da4268 authored by Dan Carpenter's avatar Dan Carpenter Committed by Alex Williamson
Browse files

vfio-mdev: remove some dead code



We set info.count to 1 in mtty_get_irq_info() so static checkers
complain that, "Why do we have impossible conditions?"  The answer is
that it seems to be left over dead code that can be safely removed.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarKirti Wankhede <kwankhede@nvidia.com>
Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent 5c677869
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;