From: Mike Yuan Date: Sun, 14 Apr 2024 15:20:31 +0000 (+0800) Subject: core/unit: use IN_SET at one more place X-Git-Tag: v256-rc1~198^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d51ea22aad508c64f1bf2a31b0c03754e8aba2c;p=thirdparty%2Fsystemd.git core/unit: use IN_SET at one more place --- diff --git a/src/core/unit.h b/src/core/unit.h index 0cfd90b3d4c..74520a33cb3 100644 --- a/src/core/unit.h +++ b/src/core/unit.h @@ -64,7 +64,7 @@ static inline bool UNIT_IS_INACTIVE_OR_FAILED(UnitActiveState t) { } static inline bool UNIT_IS_LOAD_COMPLETE(UnitLoadState t) { - return t >= 0 && t < _UNIT_LOAD_STATE_MAX && t != UNIT_STUB && t != UNIT_MERGED; + return t >= 0 && t < _UNIT_LOAD_STATE_MAX && !IN_SET(t, UNIT_STUB, UNIT_MERGED); } static inline bool UNIT_IS_LOAD_ERROR(UnitLoadState t) {