]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: minor simplification
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Apr 2020 15:12:08 +0000 (17:12 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 23 Apr 2020 07:18:05 +0000 (09:18 +0200)
src/nspawn/nspawn.c

index 9888c9e294bd2ee00d642e420b42b8f647b0c226..afef5f727e5660fc87c11ccd8ddc36e0841d6e67 100644 (file)
@@ -2974,13 +2974,10 @@ static int inner_child(
                                 arg_uid_range,
                                 arg_selinux_apifs_context,
                                 true);
-                if (r < 0)
-                        return r;
-        } else {
+        } else
                 r = mount_systemd_cgroup_writable("", arg_unified_cgroup_hierarchy);
-                if (r < 0)
-                        return r;
-        }
+        if (r < 0)
+                return r;
 
         r = setup_boot_id();
         if (r < 0)