]> 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>
Wed, 12 Feb 2025 16:48:59 +0000 (17:48 +0100)
committerMike Yuan <me@yhndnzj.com>
Wed, 12 Feb 2025 16:49:22 +0000 (17:49 +0100)
src/core/unit.c

index e6c5a45dcf2ae7aa072607afd7440467a52014be..3f4432f6556af2f3ce97275bdb8168f0b855f931 100644 (file)
@@ -403,7 +403,7 @@ void unit_release_resources(Unit *u) {
                 return;
 
         state = unit_active_state(u);
-        if (!IN_SET(state, UNIT_INACTIVE, UNIT_FAILED))
+        if (!UNIT_IS_INACTIVE_OR_FAILED(state))
                 return;
 
         if (unit_will_restart(u))