Skip to content

Commit

Permalink
drm/xe: Remove unrequired NULL check in xe_sched_job_free_fences
Browse files Browse the repository at this point in the history
dma_fence_chain_free() can handle NULL input, there is no need for NULL
check by caller.

Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Jagmeet Randhawa <jagmeet.randhawa@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240820090230.3258128-3-himal.prasad.ghimiray@intel.com
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
  • Loading branch information
Himal Prasad Ghimiray authored and Nirmoy Das committed Aug 27, 2024
1 parent 19f01d4 commit 8a04e34
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/gpu/drm/xe/xe_sched_job.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ static void xe_sched_job_free_fences(struct xe_sched_job *job)

if (ptrs->lrc_fence)
xe_lrc_free_seqno_fence(ptrs->lrc_fence);
if (ptrs->chain_fence)
dma_fence_chain_free(ptrs->chain_fence);
dma_fence_chain_free(ptrs->chain_fence);
}
}

Expand Down

0 comments on commit 8a04e34

Please sign in to comment.