diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2015-09-02 19:58:12 +0200 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2015-09-02 19:58:12 +0200 |
commit | 09d2f5b1c914a9fbc291af14652a296687d5fbd2 (patch) | |
tree | 1c85cbc68f38e2159163c3f18ecb2fc055456966 /src/core | |
parent | c069f477792bf78385ebdcaf1dc37ae57e0e8c88 (diff) |
scope: do not compare a bool return with "<= 0"
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/scope.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/scope.c b/src/core/scope.c index 44cd324f58..35cf0621be 100644 --- a/src/core/scope.c +++ b/src/core/scope.c @@ -138,7 +138,7 @@ static int scope_verify(Scope *s) { return 0; if (set_isempty(UNIT(s)->pids) && - !manager_is_reloading_or_reexecuting(UNIT(s)->manager) <= 0 && + !manager_is_reloading_or_reexecuting(UNIT(s)->manager) && !unit_has_name(UNIT(s), SPECIAL_INIT_SCOPE)) { log_unit_error(UNIT(s), "Scope has no PIDs. Refusing."); return -EINVAL; |