core/unit: use IN_SET at one more place

This commit is contained in:
Mike Yuan
2024-04-14 23:22:12 +08:00
parent ae9fd433d6
commit 2d51ea22aa
+1 -1
View File
@@ -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) {