mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 07:01:32 +00:00
PM / tools: cpupower: drop negativity check on unsigned value
Link: https://bugzilla.kernel.org/show_bug.cgi?id=80621 Reported-by: David Binderman <dcb314@hotmail.com> Signed-off-by: Andrey Utkin <andrey.krieger.utkin@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
1795cd9b3a
commit
788606cb88
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user