diff options
Diffstat (limited to 'init/do_mounts.c')
-rw-r--r-- | init/do_mounts.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/init/do_mounts.c b/init/do_mounts.c index e7f0b0f18cce..864c032e995d 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c | |||
@@ -643,14 +643,9 @@ struct file_system_type rootfs_fs_type = { | |||
643 | .kill_sb = kill_litter_super, | 643 | .kill_sb = kill_litter_super, |
644 | }; | 644 | }; |
645 | 645 | ||
646 | int __init init_rootfs(void) | 646 | void __init init_rootfs(void) |
647 | { | 647 | { |
648 | int err = 0; | ||
649 | |||
650 | if (IS_ENABLED(CONFIG_TMPFS) && !saved_root_name[0] && | 648 | if (IS_ENABLED(CONFIG_TMPFS) && !saved_root_name[0] && |
651 | (!root_fs_names || strstr(root_fs_names, "tmpfs"))) { | 649 | (!root_fs_names || strstr(root_fs_names, "tmpfs"))) |
652 | err = shmem_init(); | ||
653 | is_tmpfs = true; | 650 | is_tmpfs = true; |
654 | } | ||
655 | return err; | ||
656 | } | 651 | } |