diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-07-23 02:27:45 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-07-23 03:25:09 +0200 |
commit | d710aaf7a5d74afb3135f2f79080bd4715790c59 (patch) | |
tree | 61a4aa2fa9c02b0bd0eb7bbf37a386b29b02846c /src/systemctl | |
parent | Merge pull request #3777 from poettering/id128-rework (diff) | |
download | systemd-d710aaf7a5d74afb3135f2f79080bd4715790c59.tar.xz systemd-d710aaf7a5d74afb3135f2f79080bd4715790c59.zip |
Use "return log_error_errno" in more places"
Diffstat (limited to 'src/systemctl')
-rw-r--r-- | src/systemctl/systemctl.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 92ba6aa4e4..5298fcfb9c 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -5537,10 +5537,8 @@ static int enable_sysv_units(const char *verb, char **args) { } j = wait_for_terminate(pid, &status); - if (j < 0) { - log_error_errno(j, "Failed to wait for child: %m"); - return j; - } + if (j < 0) + return log_error_errno(j, "Failed to wait for child: %m"); if (status.si_code == CLD_EXITED) { if (streq(verb, "is-enabled")) { |