summaryrefslogtreecommitdiff
path: root/src/system-update-generator/system-update-generator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/system-update-generator/system-update-generator.c')
-rw-r--r--src/system-update-generator/system-update-generator.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/system-update-generator/system-update-generator.c b/src/system-update-generator/system-update-generator.c
index 2e37410bf4..464ee22b20 100644
--- a/src/system-update-generator/system-update-generator.c
+++ b/src/system-update-generator/system-update-generator.c
@@ -46,10 +46,8 @@ static int generate_symlink(void) {
}
p = strappenda(arg_dest, "/default.target");
- if (symlink(SYSTEM_DATA_UNIT_PATH "/system-update.target", p) < 0) {
- log_error_errno(errno, "Failed to create symlink %s: %m", p);
- return -errno;
- }
+ if (symlink(SYSTEM_DATA_UNIT_PATH "/system-update.target", p) < 0)
+ return log_error_errno(errno, "Failed to create symlink %s: %m", p);
return 0;
}