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

core/path: minor simplification

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-11-18 18:15:44 +01:00
parent c9fdaed079
commit 93e63b2a35

View File

@ -501,18 +501,14 @@ fail:
static bool path_check_good(Path *p, bool initial) {
PathSpec *s;
bool good = false;
assert(p);
LIST_FOREACH(spec, s, p->specs) {
good = path_spec_check_good(s, initial);
LIST_FOREACH(spec, s, p->specs)
if (path_spec_check_good(s, initial))
return true;
if (good)
break;
}
return good;
return false;
}
static void path_enter_waiting(Path *p, bool initial, bool recheck) {