]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit23dc94ed41843aa6b70d3e151aa59ad42ef06c05
treef14e30c586eeb8e0ef342f4becbd1418dc482aad
parentc1e66d0dc1c72ba5485567992e08d18d4d4a3026
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