]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/unit.c
tree-wide: use IN_SET where possible
[thirdparty/systemd.git] / src / core / unit.c
index 60cf30ea3a4941c344597da57d146ff49e381e7c..0ef6fcfab595848f9e83c283c9939e1c8625829f 100644 (file)
@@ -3552,9 +3552,7 @@ bool unit_active_or_pending(Unit *u) {
                 return true;
 
         if (u->job &&
-            (u->job->type == JOB_START ||
-             u->job->type == JOB_RELOAD_OR_START ||
-             u->job->type == JOB_RESTART))
+            IN_SET(u->job->type, JOB_START, JOB_RELOAD_OR_START, JOB_RESTART))
                 return true;
 
         return false;