Skip to content

Commit 8da8aec

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]>
1 parent 3b545b2 commit 8da8aec

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
@@ -2056,9 +2056,6 @@ int xe_vm_create_ioctl(struct drm_device *dev, void *data,
20562056
args->flags & DRM_XE_VM_CREATE_FLAG_FAULT_MODE))
20572057
return -EINVAL;
20582058

2059-
if (XE_IOCTL_DBG(xe, args->extensions))
2060-
return -EINVAL;
2061-
20622059
if (args->flags & DRM_XE_VM_CREATE_FLAG_SCRATCH_PAGE)
20632060
flags |= XE_VM_FLAG_SCRATCH_PAGE;
20642061
if (args->flags & DRM_XE_VM_CREATE_FLAG_LR_MODE)

0 commit comments

Comments
 (0)