]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/remount-fs/remount-fs.c
remount-fs: use PATH_IN_SET() at one more place
[thirdparty/systemd.git] / src / remount-fs / remount-fs.c
index af92ddb96cf5499a22c5a1692d0a9bf6cb7f11c1..bfc6ca67a1cf341d232352407d22321f5bd4e8e4 100644 (file)
@@ -56,8 +56,7 @@ static int run(int argc, char *argv[]) {
 
                 /* Remount the root fs, /usr and all API VFS */
                 if (!mount_point_is_api(me->mnt_dir) &&
-                    !path_equal(me->mnt_dir, "/") &&
-                    !path_equal(me->mnt_dir, "/usr"))
+                    !PATH_IN_SET(me->mnt_dir, "/", "/usr"))
                         continue;
 
                 log_debug("Remounting %s", me->mnt_dir);