1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 17:51:22 +03:00

pid1: remove unnecessary counter

The loop must terminate after at most three iterations anyway.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2016-12-10 23:07:46 -05:00
parent 2dc95d98e1
commit 007f48bb89

View File

@ -606,7 +606,6 @@ int config_parse_exec(
_cleanup_strv_free_ char **n = NULL;
size_t nlen = 0, nbufsize = 0;
const char *f;
int i;
semicolon = false;
@ -615,7 +614,7 @@ int config_parse_exec(
return 0;
f = firstword;
for (i = 0; i < 3; i++) {
for (;;) {
/* We accept an absolute path as first argument.
* If it's prefixed with - and the path doesn't exist,
* we ignore it instead of erroring out;