提交 788606cb 编写于 作者: A Andrey Utkin 提交者: Rafael J. Wysocki

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

Link: https://bugzilla.kernel.org/show_bug.cgi?id=80621Reported-by: NDavid Binderman <dcb314@hotmail.com>
Signed-off-by: NAndrey Utkin <andrey.krieger.utkin@gmail.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册