From: Colin Ian King Date: Thu, 18 Jun 2020 10:26:22 +0000 (+0100) Subject: drm/amdgpu: remove redundant initialization of variable ret X-Git-Tag: v5.15~3115^2~25^2~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c8e0835ebb1682a042aeaec7cef6dc45aebb0cb;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c index 14cc6c5..13870ac 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c @@ -1669,7 +1669,7 @@ static ssize_t amdgpu_set_pp_power_profile_mode(struct device *dev, const char *buf, size_t count) { - int ret = 0xff; + int ret; struct drm_device *ddev = dev_get_drvdata(dev); struct amdgpu_device *adev = ddev->dev_private; uint32_t parameter_size = 0;