]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
scope: do not compare a bool return with "<= 0" 1123/head
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Wed, 2 Sep 2015 17:58:12 +0000 (19:58 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Wed, 2 Sep 2015 17:58:12 +0000 (19:58 +0200)
src/core/scope.c

index 44cd324f5800c75f618ebdfeb22a7983bb1eafa3..35cf0621bed55a6f150964f5028f94ce1ac7c5e1 100644 (file)
@@ -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;