summaryrefslogtreecommitdiff
path: root/src/fstab-generator
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-06-24 21:22:05 +0200
committerLennart Poettering <lennart@poettering.net>2016-06-24 21:22:05 +0200
commit592288a2a78a3bd5b61b094f0512ce4806537b21 (patch)
treef3f05dd114a9ad2b944db9a9fd42493d2814b4a9 /src/fstab-generator
parentf113f8e382b8b53d586a507ef4c125009a4be33e (diff)
fstab-generator: minor simplification
Diffstat (limited to 'src/fstab-generator')
-rw-r--r--src/fstab-generator/fstab-generator.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c
index f941643c70..5aeca7e2d5 100644
--- a/src/fstab-generator/fstab-generator.c
+++ b/src/fstab-generator/fstab-generator.c
@@ -417,8 +417,7 @@ static int parse_fstab(bool initrd) {
if (errno == ENOENT)
return 0;
- log_error_errno(errno, "Failed to open %s: %m", fstab_path);
- return -errno;
+ return log_error_errno(errno, "Failed to open %s: %m", fstab_path);
}
while ((me = getmntent(f))) {