]> 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>
Thu, 23 Aug 2018 20:38:52 +0000 (22:38 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index 22403d7655f422b2262156ff0b2631361607d4be..a17d59b1275ac7eeab25ac45e5b7f4f1450ad9e2 100644 (file)
@@ -834,13 +834,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;
 }