drm/amdgpu: remove redundant initialization of variable ret
authorColin Ian King <colin.king@canonical.com>
Thu, 18 Jun 2020 10:26:22 +0000 (11:26 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:23 +0000 (01:59 -0400)
commit7c8e0835ebb1682a042aeaec7cef6dc45aebb0cb
tree7f82c68fc75a2432bbcb116b61fa81200b2fb0ac
parent683fc63ddd2cd89b52cf27ee7335e7d0893dca3b
drm/amdgpu: remove redundant initialization of variable ret

The variable ret is being initialized 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_pm.c