summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-06-25 06:09:48 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-06-25 06:09:48 +0200
commitb4dec49f831ca5af0ad26c10eb31762e9e738c93 (patch)
tree5886df14fa350c016b85c4e4d8d09588cacda4c8
parentbus-util: fix error handling (diff)
downloadsystemd-b4dec49f831ca5af0ad26c10eb31762e9e738c93.tar.xz
systemd-b4dec49f831ca5af0ad26c10eb31762e9e738c93.zip
core/cgroup: drop unnecessary condition
-rw-r--r--src/core/cgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c
index bb02436203..d4b9bdb884 100644
--- a/src/core/cgroup.c
+++ b/src/core/cgroup.c
@@ -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... */