Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

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