author: Petr Mladek <pmladek@suse.com> 2021-01-08 12:48:47 +0100
committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-01-08 11:02:18 -0800
commit: a91bd6223ecd46addc71ee6fcd432206d39365d2
parent: c4cc3b1de31b76f425ce92854783709386f9e1b7
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 7 deletions
diff --git a/init/main.c b/init/main.c
index 421640fca375..c68d784376ca 100644
--- a/init/main.c
+++ b/init/main.c
@@ -1480,14 +1480,8 @@ void __init console_on_rootfs(void)
struct file *file = filp_open("/dev/console", O_RDWR, 0);
if (IS_ERR(file)) {
- pr_err("Warning: unable to open an initial console. Fallback to ttynull.\n");
- register_ttynull_console();
-
- file = filp_open("/dev/console", O_RDWR, 0);
- if (IS_ERR(file)) {
- pr_err("Warning: Failed to add ttynull console. No stdin, stdout, and stderr for the init process!\n");
- return;
- }
+ pr_err("Warning: unable to open an initial console.\n");
+ return;
}
init_dup(file);
init_dup(file);