sysctl: minor simplification

Let's place only one ternary operator.
This commit is contained in:
Lennart Poettering
2016-11-02 11:39:48 -06:00
parent 4f14f2bb6f
commit e510508115
+2 -2
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();