summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-08-28 16:02:39 +0200
committerHarald Hoyer <harald@redhat.com>2013-08-28 16:02:39 +0200
commit3d040cf24473f2ed13121d57ed753bad5f8ad09d (patch)
treef53a68bf9c466c633bd003a75a903ff1eae4cf17 /src/core
parenta255a7f1442590b95a54227636ed0e66398fb4ff (diff)
Revert "cgroup.c: check return value of unit_realize_cgroup_now()"
This reverts commit 1f11a0cdfe397cc404d61ee679fc12f58c0a885b.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/cgroup.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c
index 50b17f3802..5a1c3adacd 100644
--- a/src/core/cgroup.c
+++ b/src/core/cgroup.c
@@ -432,13 +432,8 @@ static int unit_realize_cgroup_now(Unit *u) {
return 0;
/* First, realize parents */
- if (UNIT_ISSET(u->slice)) {
- int r;
-
- r = unit_realize_cgroup_now(UNIT_DEREF(u->slice));
- if (r < 0)
- return r;
- }
+ if (UNIT_ISSET(u->slice))
+ unit_realize_cgroup_now(UNIT_DEREF(u->slice));
/* And then do the real work */
return unit_create_cgroups(u, mask);