]> Git Repo - linux.git/commitdiff
printk: Remove bogus comment vs. boot consoles
authorThomas Gleixner <[email protected]>
Sat, 24 Sep 2022 00:04:40 +0000 (02:10 +0206)
committerPetr Mladek <[email protected]>
Thu, 29 Sep 2022 13:20:44 +0000 (15:20 +0200)
The comment about unregistering boot consoles is just not matching the
reality. Remove it.

Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: John Ogness <[email protected]>
Reviewed-by: Sergey Senozhatsky <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
kernel/printk/printk.c

index d6bba2ea14e8e42a3d4253604f161bd4c4acb4d5..770511b89504450cbc5451277a229531e342e399 100644 (file)
@@ -3209,9 +3209,6 @@ void register_console(struct console *newcon)
        if (bootcon_enabled &&
            ((newcon->flags & (CON_CONSDEV | CON_BOOT)) == CON_CONSDEV) &&
            !keep_bootcon) {
        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);
                for_each_console(con)
                        if (con->flags & CON_BOOT)
                                unregister_console(con);
This page took 0.062212 seconds and 4 git commands to generate.