From: Emil Velikov <[email protected]>

Drop the custom ioctl io encoding check - core drm does it for us.

Cc: "VMware Graphics" <[email protected]>
Cc: Thomas Hellstrom <[email protected]>
Cc: Daniel Vetter <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
---
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c 
b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
index 2cb6ae219e43..f65542639b55 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
@@ -1147,9 +1147,6 @@ static long vmw_generic_ioctl(struct file *filp, unsigned 
int cmd,
                                return -EACCES;
                }
 
-               if (unlikely(ioctl->cmd != cmd))
-                       goto out_io_encoding;
-
                flags = ioctl->flags;
        } else if (!drm_ioctl_flags(nr, &flags))
                return -EINVAL;
@@ -1169,12 +1166,6 @@ static long vmw_generic_ioctl(struct file *filp, 
unsigned int cmd,
                ttm_read_unlock(&vmaster->lock);
 
        return ret;
-
-out_io_encoding:
-       DRM_ERROR("Invalid command format, ioctl %d\n",
-                 nr - DRM_COMMAND_BASE);
-
-       return -EINVAL;
 }
 
 static long vmw_unlocked_ioctl(struct file *filp, unsigned int cmd,
-- 
2.21.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to