From: Christian Brauner Date: Tue, 27 Feb 2018 14:57:16 +0000 (+0100) Subject: cgfsng: non-functional changes X-Git-Tag: lxc-2.0.10~195 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f916a5fa84ff67ceb420dab1778eb351a191b6e;p=thirdparty%2Flxc.git cgfsng: non-functional changes Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 22403d765..a17d59b12 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -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; }