From: Mike Yuan Date: Fri, 19 Apr 2024 02:07:13 +0000 (+0800) Subject: core/unit: use UNIT_IS_INACTIVE_OR_FAILED at one more place X-Git-Tag: v256-rc1~121^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcd7aef724e3348f3b08847f9ab4f773f612a405;p=thirdparty%2Fsystemd.git core/unit: use UNIT_IS_INACTIVE_OR_FAILED at one more place --- diff --git a/src/core/unit.c b/src/core/unit.c index f26c1c248ee..15285a3ac4c 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -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;