cgfsng: get_max_cpus()

parent 414c6719
......@@ -496,13 +496,9 @@ static ssize_t get_max_cpus(char *cpulist)
c2 = c1;
else if (c1 < c2)
c1 = c2;
else if (!c1 && c2) /* The reverse case is obvs. not needed. */
else if (!c1 && c2)
c1 = c2;
/* If the above logic is correct, c1 should always hold a valid string
* here.
*/
errno = 0;
cpus = strtoul(c1, NULL, 0);
if (errno != 0)
......
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