summaryrefslogtreecommitdiff
path: root/src/core/cgroup.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-08-28 17:14:59 +0200
committerLennart Poettering <lennart@poettering.net>2015-08-31 13:20:43 +0200
commit35b7ff80e29524cb01f881ca6d52c669970c88f1 (patch)
treeb041bd8084e481a38760152ebf97579656b2c478 /src/core/cgroup.c
parent6513d561ce4c894ea4e29612a2ed62c8310a164f (diff)
unit: add new macros to test for unit contexts
Diffstat (limited to 'src/core/cgroup.c')
-rw-r--r--src/core/cgroup.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c
index 6474e08bd2..c26807ba2b 100644
--- a/src/core/cgroup.c
+++ b/src/core/cgroup.c
@@ -806,12 +806,9 @@ static void unit_queue_siblings(Unit *u) {
}
int unit_realize_cgroup(Unit *u) {
- CGroupContext *c;
-
assert(u);
- c = unit_get_cgroup_context(u);
- if (!c)
+ if (!UNIT_HAS_CGROUP_CONTEXT(u))
return 0;
/* So, here's the deal: when realizing the cgroups for this