chiark / gitweb /
Revert "cgroup.c: check return value of unit_realize_cgroup_now()"
authorHarald Hoyer <harald@redhat.com>
Wed, 28 Aug 2013 14:02:39 +0000 (16:02 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 28 Aug 2013 14:02:39 +0000 (16:02 +0200)
This reverts commit 1f11a0cdfe397cc404d61ee679fc12f58c0a885b.

src/core/cgroup.c

index 50b17f3..5a1c3ad 100644 (file)
@@ -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);