]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/hashmap.c
tree-wide: use IN_SET where possible
[thirdparty/systemd.git] / src / basic / hashmap.c
index 50fefb0b54fe5604d92d436ca92bed4d3d8c244b..6ef1b0ba3583678e8df63ed7ff75227854749313 100644 (file)
@@ -927,7 +927,7 @@ static bool hashmap_put_robin_hood(HashmapBase *h, unsigned idx,
 
         for (distance = 0; ; distance++) {
                 raw_dib = dibs[idx];
-                if (raw_dib == DIB_RAW_FREE || raw_dib == DIB_RAW_REHASH) {
+                if (IN_SET(raw_dib, DIB_RAW_FREE, DIB_RAW_REHASH)) {
                         if (raw_dib == DIB_RAW_REHASH)
                                 bucket_move_entry(h, swap, idx, IDX_TMP);