Merge pull request #1123 from phomes/scope-no-bool-vs-int

scope: do not compare a bool return with "<= 0"
This commit is contained in:
Lennart Poettering
2015-09-03 01:12:58 +02:00
+1 -1
View 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;