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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}