]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/unit: use UNIT_IS_INACTIVE_OR_FAILED at one more place
authorMike Yuan <me@yhndnzj.com>
Fri, 19 Apr 2024 02:07:13 +0000 (10:07 +0800)
committerMike Yuan <me@yhndnzj.com>
Fri, 19 Apr 2024 02:08:35 +0000 (10:08 +0800)
src/core/unit.c

index f26c1c248eed0dcd8623481b71760948fdd386f5..15285a3ac4cdc1f9356f07dde87936cd7b7d726e 100644 (file)
@@ -467,7 +467,7 @@ bool unit_may_gc(Unit *u) {
                 break;
 
         case COLLECT_INACTIVE_OR_FAILED:
-                if (!IN_SET(state, UNIT_INACTIVE, UNIT_FAILED))
+                if (!UNIT_IS_INACTIVE_OR_FAILED(state))
                         return false;
 
                 break;