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) {