]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgfsng: non-functional changes
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 27 Feb 2018 14:57:16 +0000 (15:57 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 27 Feb 2018 21:09:24 +0000 (22:09 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index 08b49ede37afd58bcc811512b8c1f39edba05764..10c7ab2cf0d983a3d3c277e466cac4f9345b0d77 100644 (file)
@@ -843,13 +843,11 @@ static bool all_controllers_found(void)
        if (!cgroup_use)
                return true;
 
-       for (p = strtok_r(cgroup_use, ",", &saveptr); p;
-            p = strtok_r(NULL, ",", &saveptr)) {
+       for (; (p = strtok_r(cgroup_use, ",", &saveptr)); cgroup_use = NULL)
                if (!controller_found(hlist, p)) {
                        CGFSNG_DEBUG("No %s controller mountpoint found\n", p);
                        return false;
                }
-       }
 
        return true;
 }