Skip to content
Commit bf7f7efb authored by Andrey Strachuk's avatar Andrey Strachuk Committed by Alex Deucher
Browse files

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: default avatarAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: default avatarAndrey Strachuk <strochuk@ispras.ru>
Fixes: 7c6e68c7 ("drm/amdgpu: Avoid HW GPU reset for RAS.")
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 1af9add1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment