mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
PM / tools: cpupower: drop negativity check on unsigned value
Link: https://bugzilla.kernel.org/show_bug.cgi?id=80621 Reported-by: David Binderman <[email protected]> Signed-off-by: Andrey Utkin <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
1795cd9b3a
commit
788606cb88
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue