diff --git a/src/core/cgroup.c b/src/core/cgroup.c index fb913f7c90..f608c422f4 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -4501,10 +4501,6 @@ int unit_get_memory_available(Unit *u, uint64_t *ret) { if (!unit_context) return -ENODATA; - CGroupRuntime *crt = unit_get_cgroup_runtime(u); - if (!crt || !crt->cgroup_path) - continue; - (void) unit_get_memory_accounting(u, CGROUP_MEMORY_CURRENT, ¤t); /* in case of error, previous current propagates as lower bound */