From: Thomas Gleixner Date: Sat, 24 Sep 2022 00:04:40 +0000 (+0206) Subject: printk: Remove bogus comment vs. boot consoles X-Git-Tag: v6.1-rc5~238^2^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb4531b346c93fd01edc0cb155330bbee102d0bd;hp=7fc11a521e7c1b8cec5904b28dba9b85186f37d7;p=platform%2Fkernel%2Flinux-starfive.git printk: Remove bogus comment vs. boot consoles The comment about unregistering boot consoles is just not matching the reality. Remove it. Signed-off-by: Thomas Gleixner Signed-off-by: John Ogness Reviewed-by: Sergey Senozhatsky Reviewed-by: Petr Mladek Reviewed-by: Greg Kroah-Hartman Signed-off-by: Petr Mladek Link: https://lore.kernel.org/r/20220924000454.3319186-5-john.ogness@linutronix.de --- diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index d6bba2e..770511b 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -3209,9 +3209,6 @@ void register_console(struct console *newcon) if (bootcon_enabled && ((newcon->flags & (CON_CONSDEV | CON_BOOT)) == CON_CONSDEV) && !keep_bootcon) { - /* We need to iterate through all boot consoles, to make - * sure we print everything out, before we unregister them. - */ for_each_console(con) if (con->flags & CON_BOOT) unregister_console(con);