From 2d51ea22aad508c64f1bf2a31b0c03754e8aba2c Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Sun, 14 Apr 2024 23:20:31 +0800 Subject: [PATCH] core/unit: use IN_SET at one more place --- src/core/unit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/unit.h b/src/core/unit.h index 0cfd90b3d4..74520a33cb 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) { -- 2.25.1