diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2014-11-28 17:34:26 +0100 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2014-11-28 17:34:26 +0100 |
commit | eb56eb9b40950f1edcffdb7313f8de4f8572a6d5 (patch) | |
tree | 6e6c04129d1bb12b5ff3fcfbc26a294766079e0e /src/core/manager.c | |
parent | c33b329709ebe2755181980a050d02ec7c81ed87 (diff) |
treewide: simplify log_*_errno(r,...) immediately followed by "return r"
Diffstat (limited to 'src/core/manager.c')
-rw-r--r-- | src/core/manager.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/manager.c b/src/core/manager.c index c56c1621b0..f934594480 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -729,10 +729,8 @@ static int manager_setup_kdbus(Manager *m) { m->running_as == SYSTEMD_SYSTEM ? "system" : "user", m->running_as == SYSTEMD_SYSTEM, &p); - if (m->kdbus_fd < 0) { - log_debug_errno(m->kdbus_fd, "Failed to set up kdbus: %m"); - return m->kdbus_fd; - } + if (m->kdbus_fd < 0) + return log_debug_errno(m->kdbus_fd, "Failed to set up kdbus: %m"); log_debug("Successfully set up kdbus on %s", p); #endif |