cgroups: remove obsolote check

In the new layout we don't need to do this. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 6fec4327
...@@ -791,9 +791,6 @@ static int cgroup_tree_remove(struct hierarchy **hierarchies, const char *path_p ...@@ -791,9 +791,6 @@ static int cgroup_tree_remove(struct hierarchy **hierarchies, const char *path_p
struct hierarchy *h = hierarchies[i]; struct hierarchy *h = hierarchies[i];
int ret; int ret;
if (!h->container_limit_path)
continue;
ret = cgroup_tree_prune(h->dfd_base, path_prune); ret = cgroup_tree_prune(h->dfd_base, path_prune);
if (ret < 0) if (ret < 0)
SYSWARN("Failed to destroy %d(%s)", h->dfd_base, path_prune); SYSWARN("Failed to destroy %d(%s)", h->dfd_base, path_prune);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment