Skip to content

Commit eb4531b

Browse files
KAGA-KOKOpmladek
authored andcommitted
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 <tglx@linutronix.de> Signed-off-by: John Ogness <john.ogness@linutronix.de> Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org> Reviewed-by: Petr Mladek <pmladek@suse.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Petr Mladek <pmladek@suse.com> Link: https://lore.kernel.org/r/20220924000454.3319186-5-john.ogness@linutronix.de
1 parent 7fc11a5 commit eb4531b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

kernel/printk/printk.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3209,9 +3209,6 @@ void register_console(struct console *newcon)
32093209
if (bootcon_enabled &&
32103210
((newcon->flags & (CON_CONSDEV | CON_BOOT)) == CON_CONSDEV) &&
32113211
!keep_bootcon) {
3212-
/* We need to iterate through all boot consoles, to make
3213-
* sure we print everything out, before we unregister them.
3214-
*/
32153212
for_each_console(con)
32163213
if (con->flags & CON_BOOT)
32173214
unregister_console(con);

0 commit comments

Comments
 (0)