core/unit: use UNIT_IS_INACTIVE_OR_FAILED at one more place

This commit is contained in:
Mike Yuan
2025-02-12 17:49:22 +01:00
parent 7ee5b95f6b
commit 468e87267f
+1 -1
View 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))