]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/udev/mtd_probe/probe_smartmedia.c
tree-wide: use `!IN_SET(..)` for `a != b && a != c && …`
[thirdparty/systemd.git] / src / udev / mtd_probe / probe_smartmedia.c
index 2a7ba17637bb59ffe8f77b2b8f20567ee337d014..89bceaa14643048c4da332a78c4b4c63700cd4c6 100644 (file)
@@ -54,7 +54,7 @@ void probe_smart_media(int mtd_fd, mtd_info_t* info)
         block_size = info->erasesize;
         size_in_megs = info->size / (1024 * 1024);
 
-        if (sector_size != SM_SECTOR_SIZE && sector_size != SM_SMALL_PAGE)
+        if (!IN_SET(sector_size, SM_SECTOR_SIZE, SM_SMALL_PAGE))
                 goto exit;
 
         switch(size_in_megs) {