[PATCH v5 4/7] console: Drop misleading comment
From: Andy Shevchenko
Date: Mon Feb 03 2020 - 08:31:38 EST
/* 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 when one had been
registered before.
Suggested-by: Petr Mladek <pmladek@xxxxxxxx>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
---
v5: no change
kernel/printk/printk.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index c63338df76cf..463ed5c5474e 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -2668,7 +2668,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",
--
2.24.1