Commit 4d2c09d6 authored by Muhammad Usama Anjum's avatar Muhammad Usama Anjum Committed by Alex Deucher

drm/amdgpu: remove dead code

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

Fixes: c3ed0e72 ("drm/amdgpu: added a sysfs interface for thermal throttling")
Signed-off-by: default avatarMuhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7bb39561
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment