summaryrefslogtreecommitdiff
path: root/src/path
diff options
context:
space:
mode:
Diffstat (limited to 'src/path')
-rw-r--r--src/path/path.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/path/path.c b/src/path/path.c
index 65016cda3e..2f0148f074 100644
--- a/src/path/path.c
+++ b/src/path/path.c
@@ -108,10 +108,8 @@ static int print_home(const char *n) {
_cleanup_free_ char *p = NULL;
r = sd_path_home(i, arg_suffix, &p);
- if (r < 0) {
- log_error_errno(r, "Failed to query %s: %m", n);
- return r;
- }
+ if (r < 0)
+ return log_error_errno(r, "Failed to query %s: %m", n);
printf("%s\n", p);
return 0;