summaryrefslogtreecommitdiff
path: root/src/sysctl
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysctl')
-rw-r--r--src/sysctl/sysctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sysctl/sysctl.c b/src/sysctl/sysctl.c
index 346ff3b237..2d1ae6e8b1 100644
--- a/src/sysctl/sysctl.c
+++ b/src/sysctl/sysctl.c
@@ -134,8 +134,7 @@ static int parse_file(Hashmap *sysctl_options, const char *path, bool ignore_eno
if (ignore_enoent && r == -ENOENT)
return 0;
- log_error_errno(r, "Failed to open file '%s', ignoring: %m", path);
- return r;
+ return log_error_errno(r, "Failed to open file '%s', ignoring: %m", path);
}
log_debug("parse: %s", path);