sysctl: minor simplification

Let's place only one ternary operator.
This commit is contained in:
Lennart Poettering 2016-10-25 09:27:39 +02:00
parent 4f14f2bb6f
commit e510508115

View file

@ -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();