]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/cgroup: drop unnecessary condition
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 25 Jun 2018 04:09:48 +0000 (13:09 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 25 Jun 2018 04:09:48 +0000 (13:09 +0900)
src/core/cgroup.c

index bb02436203f5ba313be8e2be82a1f214010737f6..d4b9bdb8847d473db8af9eccdfb34a83f2863370 100644 (file)
@@ -2260,7 +2260,7 @@ int manager_setup_cgroup(Manager *m) {
                 if (m->pin_cgroupfs_fd < 0)
                         return log_error_errno(errno, "Failed to open pin file: %m");
 
-        } else if (r < 0 && !m->test_run_flags)
+        } else if (!m->test_run_flags)
                 return log_error_errno(r, "Failed to create %s control group: %m", scope_path);
 
         /* 7. Always enable hierarchical support if it exists... */