summaryrefslogtreecommitdiff
path: root/src/shared/logs-show.c
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2014-11-28 19:13:53 +0100
committerMichal Schmidt <mschmidt@redhat.com>2014-11-28 19:17:24 +0100
commit8d3d7072e609ef0e0fb37e1d19a29307d58146c3 (patch)
tree96a7628cd8bbf315bd9ca55e87eb2dd3cb50e054 /src/shared/logs-show.c
parentf647962d64e844689f3e2acfce6102fc47e76df2 (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/shared/logs-show.c')
-rw-r--r--src/shared/logs-show.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c
index 2da4ef3e12..98972eda3b 100644
--- a/src/shared/logs-show.c
+++ b/src/shared/logs-show.c
@@ -858,8 +858,7 @@ static int output_cat(
if (r == -ENOENT)
return 0;
- log_error_errno(r, "Failed to get data: %m");
- return r;
+ return log_error_errno(r, "Failed to get data: %m");
}
assert(l >= 8);