From: Xin Wang <x.wang@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: Xin Wang <x.wang@intel.com>, Rodrigo Vivi <rodrigo.vivi@intel.com>
Subject: [PATCH] drm/xe: remove redundant check in xe_vm_create_ioctl()
Date: Mon, 3 Mar 2025 08:49:41 +0800 [thread overview]
Message-ID: <20250303004942.951699-1-x.wang@intel.com> (raw)
The check for args->extensions is repeated twice in xe_vm_create_ioctl().
This commit removes the redundant check to streamline the code.
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Xin Wang <x.wang@intel.com>
---
drivers/gpu/drm/xe/xe_vm.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c
index 996000f2424e..eb76f6854b2f 100644
--- a/drivers/gpu/drm/xe/xe_vm.c
+++ b/drivers/gpu/drm/xe/xe_vm.c
@@ -1798,9 +1798,6 @@ int xe_vm_create_ioctl(struct drm_device *dev, void *data,
args->flags & DRM_XE_VM_CREATE_FLAG_FAULT_MODE))
return -EINVAL;
- if (XE_IOCTL_DBG(xe, args->extensions))
- return -EINVAL;
-
if (args->flags & DRM_XE_VM_CREATE_FLAG_SCRATCH_PAGE)
flags |= XE_VM_FLAG_SCRATCH_PAGE;
if (args->flags & DRM_XE_VM_CREATE_FLAG_LR_MODE)
--
2.43.0
next reply other threads:[~2025-03-03 0:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-03 0:49 Xin Wang [this message]
2025-03-03 0:54 ` ✓ CI.Patch_applied: success for drm/xe: remove redundant check in xe_vm_create_ioctl() Patchwork
2025-03-03 0:54 ` ✓ CI.checkpatch: " Patchwork
2025-03-03 0:55 ` ✓ CI.KUnit: " Patchwork
2025-03-03 1:12 ` ✓ CI.Build: " Patchwork
2025-03-03 1:14 ` ✓ CI.Hooks: " Patchwork
2025-03-03 1:17 ` ✓ CI.checksparse: " Patchwork
2025-03-03 1:36 ` ✓ Xe.CI.BAT: " Patchwork
2025-03-03 2:29 ` ✗ Xe.CI.Full: failure " Patchwork
2025-03-03 6:03 ` [PATCH] " Upadhyay, Tejas
2025-03-10 17:33 ` Rodrigo Vivi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250303004942.951699-1-x.wang@intel.com \
--to=x.wang@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=rodrigo.vivi@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox