From: Christian Brauner Date: Wed, 17 Feb 2021 08:06:37 +0000 (+0100) Subject: cgroups: remove obsolote check X-Git-Tag: lxc-5.0.0~281^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2291719e82e484d05cfc1b87984ab48e8fd2eb13;p=thirdparty%2Flxc.git cgroups: remove obsolote check In the new layout we don't need to do this. Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 8987c3eaa..1aaee05e7 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -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);