]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: remove useless condition in amdgpu_job_stop_all_jobs_on_sched()
authorAndrey Strachuk <strochuk@ispras.ru>
Tue, 19 Jul 2022 10:39:54 +0000 (13:39 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Aug 2022 22:09:47 +0000 (18:09 -0400)
commita94bd7a060d3f6f75c7fe7a20743c1307d1fc686
treefac911853e0aef1245200a6b3d8eebf134239883
parent4c6b63cbc456770e7cf3b08a8bce500723cad67e
drm/amdgpu: remove useless condition in amdgpu_job_stop_all_jobs_on_sched()

Local variable 'rq' is initialized by an address
of field of drm_sched_job, so it does not make
sense to compare 'rq' with NULL.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Andrey Strachuk <strochuk@ispras.ru>
Fixes: efb2e77336a2 ("drm/amdgpu: Avoid HW GPU reset for RAS.")
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c