Skip to content

Commit 8a04e34

Browse files
hghimiranirmoy
authored andcommitted
drm/xe: Remove unrequired NULL check in xe_sched_job_free_fences
dma_fence_chain_free() can handle NULL input, there is no need for NULL check by caller. Signed-off-by: Himal Prasad Ghimiray <[email protected]> Reviewed-by: Matthew Brost <[email protected]> Reviewed-by: Jagmeet Randhawa <[email protected]> Reviewed-by: Nirmoy Das <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Nirmoy Das <[email protected]>
1 parent 19f01d4 commit 8a04e34

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/xe/xe_sched_job.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ static void xe_sched_job_free_fences(struct xe_sched_job *job)
8989

9090
if (ptrs->lrc_fence)
9191
xe_lrc_free_seqno_fence(ptrs->lrc_fence);
92-
if (ptrs->chain_fence)
93-
dma_fence_chain_free(ptrs->chain_fence);
92+
dma_fence_chain_free(ptrs->chain_fence);
9493
}
9594
}
9695

0 commit comments

Comments
 (0)