summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-08-26 17:25:08 +0200
committerDjalal Harouni <tixxdz@opendz.org>2016-09-25 10:52:57 +0200
commit54500613a46023fe991f424e21ed15948b9a74f5 (patch)
tree6c458041051fa1b34c256c47568c1c973466f96d /src/core
parent0439746492e5839cfa1cdd76b9d23711eb1f451b (diff)
main: minor simplification
Diffstat (limited to 'src/core')
-rw-r--r--src/core/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 803307c9d5..be0cb0b6d1 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -996,10 +996,8 @@ static int parse_argv(int argc, char *argv[]) {
case ARG_MACHINE_ID:
r = set_machine_id(optarg);
- if (r < 0) {
- log_error("MachineID '%s' is not valid.", optarg);
- return r;
- }
+ if (r < 0)
+ return log_error_errno(r, "MachineID '%s' is not valid.", optarg);
break;
case 'h':