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

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 <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>

authored by

Himal Prasad Ghimiray and committed by
Nirmoy Das
8a04e342 19f01d4b

+1 -2
+1 -2
drivers/gpu/drm/xe/xe_sched_job.c
··· 89 89 90 90 if (ptrs->lrc_fence) 91 91 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); 94 93 } 95 94 } 96 95