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:
parent
c9fdaed079
commit
93e63b2a35
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user