From 09d2f5b1c914a9fbc291af14652a296687d5fbd2 Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Wed, 2 Sep 2015 19:58:12 +0200 Subject: scope: do not compare a bool return with "<= 0" --- src/core/scope.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/scope.c') 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; -- cgit v1.2.3-54-g00ecf