drm/amdgpu: remove dead code
authorMuhammad Usama Anjum <usama.anjum@collabora.com>
Fri, 3 Mar 2023 12:02:32 +0000 (17:02 +0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Mar 2023 19:21:56 +0000 (14:21 -0500)
The less than zero comparison of unsigned variable "value" is never
true. Remove dead code.

Fixes: c3ed0e72c872 ("drm/amdgpu: added a sysfs interface for thermal throttling")
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c

index f212cae..0ffe351 100644 (file)
@@ -1738,7 +1738,7 @@ static ssize_t amdgpu_set_apu_thermal_cap(struct device *dev,
        if (ret)
                return ret;
 
-       if (value < 0 || value > 100) {
+       if (value > 100) {
                dev_err(dev, "Invalid argument !\n");
                return -EINVAL;
        }