drm/amdgpu: remove dead code

The less than zero comparison of unsigned variable "value" is never
true. Remove dead code.

Fixes: c3ed0e72c8 ("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>
This commit is contained in:
Muhammad Usama Anjum
2023-03-03 17:02:32 +05:00
committed by Alex Deucher
parent 7bb3956178
commit 4d2c09d68d

View 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;
}