1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-20 14:03:39 +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) { static bool path_check_good(Path *p, bool initial) {
PathSpec *s; PathSpec *s;
bool good = false;
assert(p); assert(p);
LIST_FOREACH(spec, s, p->specs) { LIST_FOREACH(spec, s, p->specs)
good = path_spec_check_good(s, initial); if (path_spec_check_good(s, initial))
return true;
if (good) return false;
break;
}
return good;
} }
static void path_enter_waiting(Path *p, bool initial, bool recheck) { static void path_enter_waiting(Path *p, bool initial, bool recheck) {