RISCV: config: tizen_visionfive2: Disable JH7110 crypto driver
[platform/kernel/linux-starfive.git] / init / do_mounts.c
index 5dfd30b..21d065a 100644 (file)
@@ -510,7 +510,10 @@ struct file_system_type rootfs_fs_type = {
 
 void __init init_rootfs(void)
 {
-       if (IS_ENABLED(CONFIG_TMPFS) && !saved_root_name[0] &&
-               (!root_fs_names || strstr(root_fs_names, "tmpfs")))
-               is_tmpfs = true;
+       if (IS_ENABLED(CONFIG_TMPFS)) {
+               if (!saved_root_name[0] && !root_fs_names)
+                       is_tmpfs = true;
+               else if (root_fs_names && !!strstr(root_fs_names, "tmpfs"))
+                       is_tmpfs = true;
+       }
 }