drm/amdgpu: properly initialize return value during CS
authorChristian König <christian.koenig@amd.com>
Tue, 20 Sep 2022 12:13:33 +0000 (14:13 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 20 Sep 2022 16:41:08 +0000 (12:41 -0400)
commitb091fc6f8e5bb27577ffb71087f06730f33a8908
tree980e97376c9f6605c9d1ee944858e303adf967e5
parent0b844b6ee28cb99ca387880435044cb55a51d73d
drm/amdgpu: properly initialize return value during CS

The return value is no longer initialized before the loop because of
moving code around.

Signed-off-by: Christian König <christian.koenig@amd.com>
Fixes: c2b08e7a6d27 ("drm/amdgpu: move entity selection and job init earlier during CS")
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c