summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-10-25 09:27:39 +0200
committerLennart Poettering <lennart@poettering.net>2016-11-02 11:39:48 -0600
commite5105081152c3eb4558d9e5d9c8aaa33f9d802ff (patch)
treedaada542fb9db216a212bafeee611a917fcdfb9f /src
parent4f14f2bb6f7402302fd4fcad6754e5ee218f4487 (diff)
sysctl: minor simplification
Let's place only one ternary operator.
Diffstat (limited to 'src')
-rw-r--r--src/sysctl/sysctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sysctl/sysctl.c b/src/sysctl/sysctl.c
index cce91b3d67..b3587e249d 100644
--- a/src/sysctl/sysctl.c
+++ b/src/sysctl/sysctl.c
@@ -247,12 +247,12 @@ static int parse_argv(int argc, char *argv[]) {
}
int main(int argc, char *argv[]) {
+ OrderedHashmap *sysctl_options = NULL;
int r = 0, k;
- OrderedHashmap *sysctl_options;
r = parse_argv(argc, argv);
if (r <= 0)
- return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
+ goto finish;
log_set_target(LOG_TARGET_AUTO);
log_parse_environment();