]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb84626c418b0f641c0a1e7f83f88e98c73778ced
tree7f82c68fc75a2432bbcb116b61fa81200b2fb0ac
parentd3f05ac84b3b4aa77e84dc0d2641c95c84bdfca8
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