From: Thomas Hindoe Paaboel Andersen Date: Wed, 2 Sep 2015 17:58:12 +0000 (+0200) Subject: scope: do not compare a bool return with "<= 0" X-Git-Tag: v226~44^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1123%2Fhead;p=thirdparty%2Fsystemd.git scope: do not compare a bool return with "<= 0" --- diff --git a/src/core/scope.c b/src/core/scope.c index 44cd324f580..35cf0621bed 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;