]> git.proxmox.com Git - mirror_lxc.git/commitdiff
cgfsng: get_max_cpus()
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 17 Feb 2018 17:55:15 +0000 (18:55 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 17 Feb 2018 17:55:15 +0000 (18:55 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index 9ca42e50b0f8b0c6cc6cb337cf71af764aa77c58..689661f7ca0f27da5ad86dddca1f0e9b73782f3b 100644 (file)
@@ -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)