]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Drop unnecessary GT lookup in xe_exec_queue_create_ioctl()
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 18 Feb 2025 20:05:12 +0000 (12:05 -0800)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 19 Feb 2025 15:14:59 +0000 (07:14 -0800)
commita1e5b6d83e03d60d15ba393cbbd7d5c13e5cf0b3
treede7c5a38e39ca2127820269b3cb9cc42598e8edc
parentf2cd50990d210eb70bf38d8077836772d4216a36
drm/xe: Drop unnecessary GT lookup in xe_exec_queue_create_ioctl()

xe_exec_queue_create_ioctl() performs a lookup of the xe_gt for the GT
ID passed from userspace, but the result is never actually used.  Since
there's already a separate (and earlier) check that the ID passed from
userspace is valid, the unnecessary lookup can be removed.

Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250218200511.4050060-2-matthew.d.roper@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/xe_exec_queue.c