drm/amdgpu: remove redundant assignment to variable ret
authorColin Ian King <colin.king@canonical.com>
Tue, 12 May 2020 12:48:06 +0000 (13:48 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 May 2020 20:42:45 +0000 (16:42 -0400)
commit29c1ec244ca1c2acfe6a8918967d678e104705c2
treef14e30c586eeb8e0ef342f4becbd1418dc482aad
parent72d99b395f6c1b924f91e7964de231fb78e47c93
drm/amdgpu: remove redundant assignment to variable ret

The variable ret is being initializeed with a value that is never read
and it is being updated later with a new value. The initialization
is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c