From: Zbigniew Jędrzejewski-Szmek Date: Sun, 11 Dec 2016 04:07:46 +0000 (-0500) Subject: pid1: remove unnecessary counter X-Git-Tag: v233~335^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=007f48bb89c0aca356054aca304ba36e5acc72eb;p=thirdparty%2Fsystemd.git pid1: remove unnecessary counter The loop must terminate after at most three iterations anyway. --- diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index 6b36b2fc3a5..687cd1dd317 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -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;