diff options
author | Tvrtko Ursulin <[email protected]> | 2024-09-24 10:51:44 +0100 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2024-10-08 09:43:39 -0400 |
commit | 871f44b4ba74a676ef2f0528a3efc591346fa92a (patch) | |
tree | 05cbd1db79304f84be73d39e432dde4b8dd6ae01 | |
parent | 66369db7fdd7d58d78673bf83d2b87ea623efb63 (diff) |
drm/amdgpu: Drop impossible condition from amdgpu_job_prepare_job
Fence has been initialised to NULL so no need to test it.
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Tvrtko Ursulin <[email protected]>
Cc: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c index e3bb234753ef..b550a31f4457 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c @@ -356,7 +356,7 @@ amdgpu_job_prepare_job(struct drm_sched_job *sched_job, if (r) goto error; - if (!fence && job->gang_submit) + if (job->gang_submit) fence = amdgpu_device_switch_gang(ring->adev, job->gang_submit); while (!fence && job->vm && !job->vmid) { |