Commit 7f0d7bee authored by Francois Dugast's avatar Francois Dugast Committed by Matthew Brost

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: default avatarFrancois Dugast <francois.dugast@intel.com>
Reviewed-by: default avatarMatthew Brost <matthew.brost@intel.com>
Signed-off-by: default avatarMatthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240809155156.1955925-6-francois.dugast@intel.com
parent 53fdfa19
...@@ -852,10 +852,7 @@ void xe_exec_queue_last_fence_put(struct xe_exec_queue *q, struct xe_vm *vm) ...@@ -852,10 +852,7 @@ void xe_exec_queue_last_fence_put(struct xe_exec_queue *q, struct xe_vm *vm)
{ {
xe_exec_queue_last_fence_lockdep_assert(q, vm); xe_exec_queue_last_fence_lockdep_assert(q, vm);
if (q->last_fence) { xe_exec_queue_last_fence_put_unlocked(q);
dma_fence_put(q->last_fence);
q->last_fence = NULL;
}
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment