Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/xe/exec_queue: Remove duplicated code

This code section is the same as the body of
xe_exec_queue_last_fence_put_unlocked() so call the function instead and
remove duplicated code to make maintenance easier.

Signed-off-by: Francois Dugast <francois.dugast@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240809155156.1955925-6-francois.dugast@intel.com

authored by

Francois Dugast and committed by
Matthew Brost
7f0d7bee 53fdfa19

+1 -4
+1 -4
drivers/gpu/drm/xe/xe_exec_queue.c
··· 852 852 { 853 853 xe_exec_queue_last_fence_lockdep_assert(q, vm); 854 854 855 - if (q->last_fence) { 856 - dma_fence_put(q->last_fence); 857 - q->last_fence = NULL; 858 - } 855 + xe_exec_queue_last_fence_put_unlocked(q); 859 856 } 860 857 861 858 /**