aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2020-02-03 15:31:27 +0200
committerPetr Mladek <[email protected]>2020-02-11 10:44:02 +0100
commitd58ad10122e6f8f84b1ef60227233b7c5de2bc02 (patch)
tree78ef7d0b5d14ea81bcba717e127933ce1c847534 /kernel
parent12825e6ba8ea8efbb6d81363b0cf6b5bf84c051a (diff)
console: Drop misleading comment
/* find the last or real console */ This comment is misleading. The purpose of the loop is to check if we are trying to register boot console after a real one has already been registered. This is already mentioned in a comment above. Link: http://lkml.kernel.org/r/[email protected] To: [email protected] To: Steven Rostedt <[email protected]> Suggested-by: Petr Mladek <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> [[email protected]: Updated commit message.] Reviewed-by: Sergey Senozhatsky <[email protected]> Signed-off-by: Petr Mladek <[email protected]>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/printk/printk.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index d40a316908da..b0c12c08cac4 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -2661,7 +2661,6 @@ void register_console(struct console *newcon)
* already have a valid console
*/
if (newcon->flags & CON_BOOT) {
- /* find the last or real console */
for_each_console(bcon) {
if (!(bcon->flags & CON_BOOT)) {
pr_info("Too late to register bootconsole %s%d\n",