Commit 788606cb authored by Andrey Utkin's avatar Andrey Utkin Committed by Rafael J. Wysocki

PM / tools: cpupower: drop negativity check on unsigned value

Link: https://bugzilla.kernel.org/show_bug.cgi?id=80621Reported-by: default avatarDavid Binderman <dcb314@hotmail.com>
Signed-off-by: default avatarAndrey Utkin <andrey.krieger.utkin@gmail.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 1795cd9b
......@@ -81,7 +81,7 @@ int sysfs_is_cpu_online(unsigned int cpu)
close(fd);
value = strtoull(linebuf, &endp, 0);
if (value > 1 || value < 0)
if (value > 1)
return -EINVAL;
return value;
......
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