[PATCH 2/3] init: remove special-case for mtd/ubi

From: Alex Xu (Hello71)
Date: Mon Dec 07 2020 - 13:50:09 EST


This should be handled by the fallback after trying to resolve it.

Signed-off-by: Alex Xu (Hello71) <alex_y_xu@xxxxxxxx>
---
init/do_mounts.c | 5 -----
1 file changed, 5 deletions(-)

diff --git a/init/do_mounts.c b/init/do_mounts.c
index 8aa38ec0bfec..a2a273b9866f 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -603,11 +603,6 @@ void __init prepare_namespace(void)

if (saved_root_name[0]) {
root_device_name = saved_root_name;
- if (!strncmp(root_device_name, "mtd", 3) ||
- !strncmp(root_device_name, "ubi", 3)) {
- mount_block_root(root_device_name, root_mountflags);
- goto out;
- }
ROOT_DEV = name_to_dev_t(root_device_name);
if (strncmp(root_device_name, "/dev/", 5) == 0)
root_device_name += 5;
--
2.29.2