]> Git Repo - linux.git/commitdiff
drm/amdgpu: remove redundant initialization of variable ret
authorColin Ian King <[email protected]>
Thu, 18 Jun 2020 10:26:22 +0000 (11:26 +0100)
committerAlex Deucher <[email protected]>
Wed, 1 Jul 2020 05:59:23 +0000 (01:59 -0400)
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 <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c

index 14cc6c546f658bd733a827002890b7372aeaff28..13870ac8f6109e4a176a3fa4da7ba49bd80d1661 100644 (file)
@@ -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;
This page took 0.048739 seconds and 4 git commands to generate.