]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/barrier.c
tree-wide: use IN_SET where possible
[thirdparty/systemd.git] / src / basic / barrier.c
index 2da633b31188a305ad95186ce2f314e8bb6ddfd0..0c44e47b12ce921fda12ec476c00696e84c97cfe 100644 (file)
@@ -171,7 +171,7 @@ void barrier_set_role(Barrier *b, unsigned int role) {
         int fd;
 
         assert(b);
-        assert(role == BARRIER_PARENT || role == BARRIER_CHILD);
+        assert(IN_SET(role, BARRIER_PARENT, BARRIER_CHILD));
         /* make sure this is only called once */
         assert(b->pipe[0] >= 0 && b->pipe[1] >= 0);