aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/pm/amdgpu_pm.c
diff options
context:
space:
mode:
authorMuhammad Usama Anjum <usama.anjum@collabora.com>2023-03-03 17:02:32 +0500
committerAlex Deucher <alexander.deucher@amd.com>2023-03-07 14:21:56 -0500
commit4d2c09d68de2acec46fb471f5a358627c9dc3885 (patch)
tree709f00b388db941a8c85a0305701e1344df639b5 /drivers/gpu/drm/amd/pm/amdgpu_pm.c
parent7bb3956178e5eaeeab5134cf38e0f057bc2344c2 (diff)
downloadlinux-4d2c09d68de2acec46fb471f5a358627c9dc3885.tar.gz
linux-4d2c09d68de2acec46fb471f5a358627c9dc3885.tar.bz2
linux-4d2c09d68de2acec46fb471f5a358627c9dc3885.zip
drm/amdgpu: remove dead code
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>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/amdgpu_pm.c')
-rw-r--r--drivers/gpu/drm/amd/pm/amdgpu_pm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
index f212cae0353f..0ffe351c1a1d 100644
--- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c
+++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c
@@ -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;
}