Skip to content

Commit 7f0d7be

Browse files
ifdumbrost05
authored andcommitted
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
1 parent 53fdfa1 commit 7f0d7be

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/gpu/drm/xe/xe_exec_queue.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -852,10 +852,7 @@ void xe_exec_queue_last_fence_put(struct xe_exec_queue *q, struct xe_vm *vm)
852852
{
853853
xe_exec_queue_last_fence_lockdep_assert(q, vm);
854854

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);
859856
}
860857

861858
/**

0 commit comments

Comments
 (0)