]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgroups: remove obsolote check
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 17 Feb 2021 08:06:37 +0000 (09:06 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 17 Feb 2021 08:06:37 +0000 (09:06 +0100)
In the new layout we don't need to do this.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index 8987c3eaaf63c526e6edad2cc411ed677d94bc74..1aaee05e7686e0b815c35b47c4345cdecd42747f 100644 (file)
@@ -791,9 +791,6 @@ static int cgroup_tree_remove(struct hierarchy **hierarchies, const char *path_p
                struct hierarchy *h = hierarchies[i];
                int ret;
 
-               if (!h->container_limit_path)
-                       continue;
-
                ret = cgroup_tree_prune(h->dfd_base, path_prune);
                if (ret < 0)
                        SYSWARN("Failed to destroy %d(%s)", h->dfd_base, path_prune);