]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/import/import-common.c
tree-wide: use IN_SET macro (#6977)
[thirdparty/systemd.git] / src / import / import-common.c
index 81209cdaf6502d69a6f38276f18508b0055431fd..ae71682988341948d4a3b8a3361a6a9bed8e00bc 100644 (file)
@@ -37,7 +37,7 @@ int import_make_read_only_fd(int fd) {
         /* First, let's make this a read-only subvolume if it refers
          * to a subvolume */
         r = btrfs_subvol_set_read_only_fd(fd, true);
-        if (r == -ENOTTY || r == -ENOTDIR || r == -EINVAL) {
+        if (IN_SET(r, -ENOTTY, -ENOTDIR, -EINVAL)) {
                 struct stat st;
 
                 /* This doesn't refer to a subvolume, or the file