]> www.infradead.org Git - users/willy/xarray.git/commitdiff
drm/xe: Remove unrequired NULL check in xe_sched_job_free_fences
authorHimal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Tue, 20 Aug 2024 09:02:30 +0000 (14:32 +0530)
committerNirmoy Das <nirmoy.das@intel.com>
Tue, 27 Aug 2024 08:32:57 +0000 (10:32 +0200)
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>
drivers/gpu/drm/xe/xe_sched_job.c

index 9628f9deb3c0122d4d0f1b76619243b7b38718d2..55d47450b2c6f7b95b52bae5423a78b0bf7d4577 100644 (file)
@@ -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);
        }
 }