Skip to content

Commit f5d4e81

Browse files
WangX-1rodrigovivi
authored andcommitted
drm/xe: remove redundant check in xe_vm_create_ioctl()
The check for args->extensions is repeated twice in xe_vm_create_ioctl(). This commit removes the redundant check to streamline the code. Fixes: 7224788 ("drm/xe: Kill XE_VM_PROPERTY_BIND_OP_ERROR_CAPTURE_ADDRESS extension") Cc: Rodrigo Vivi <[email protected]> Signed-off-by: Xin Wang <[email protected]> Reviewed-by: Tejas Upadhyay <[email protected]> Reviewed-by: Matthew Auld <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Rodrigo Vivi <[email protected]> (cherry picked from commit 8da8aec) Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent c605acb commit f5d4e81

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/gpu/drm/xe/xe_vm.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1809,9 +1809,6 @@ int xe_vm_create_ioctl(struct drm_device *dev, void *data,
18091809
args->flags & DRM_XE_VM_CREATE_FLAG_FAULT_MODE))
18101810
return -EINVAL;
18111811

1812-
if (XE_IOCTL_DBG(xe, args->extensions))
1813-
return -EINVAL;
1814-
18151812
if (args->flags & DRM_XE_VM_CREATE_FLAG_SCRATCH_PAGE)
18161813
flags |= XE_VM_FLAG_SCRATCH_PAGE;
18171814
if (args->flags & DRM_XE_VM_CREATE_FLAG_LR_MODE)

0 commit comments

Comments
 (0)