diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2014-11-28 19:13:53 +0100 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2014-11-28 19:17:24 +0100 |
commit | 8d3d7072e609ef0e0fb37e1d19a29307d58146c3 (patch) | |
tree | 96a7628cd8bbf315bd9ca55e87eb2dd3cb50e054 /src/resolve/resolved-manager.c | |
parent | f647962d64e844689f3e2acfce6102fc47e76df2 (diff) |
treewide: a few more log_*_errno + return simplifications
The one in tmpfiles.c:create_item() even looks like it fixes a bug.
Diffstat (limited to 'src/resolve/resolved-manager.c')
-rw-r--r-- | src/resolve/resolved-manager.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/resolve/resolved-manager.c b/src/resolve/resolved-manager.c index 9f61c9d9a2..661f8fc738 100644 --- a/src/resolve/resolved-manager.c +++ b/src/resolve/resolved-manager.c @@ -379,10 +379,8 @@ static int manager_watch_hostname(Manager *m) { if (r == -EPERM) /* kernels prior to 3.2 don't support polling this file. Ignore the failure. */ m->hostname_fd = safe_close(m->hostname_fd); - else { - log_error_errno(r, "Failed to add hostname event source: %m"); - return r; - } + else + return log_error_errno(r, "Failed to add hostname event source: %m"); } r = determine_hostname(&m->hostname); |