mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	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
This commit is contained in:
		
							parent
							
								
									7fc11a521e
								
							
						
					
					
						commit
						eb4531b346
					
				
					 1 changed files with 0 additions and 3 deletions
				
			
		| 
						 | 
					@ -3209,9 +3209,6 @@ void register_console(struct console *newcon)
 | 
				
			||||||
	if (bootcon_enabled &&
 | 
						if (bootcon_enabled &&
 | 
				
			||||||
	    ((newcon->flags & (CON_CONSDEV | CON_BOOT)) == CON_CONSDEV) &&
 | 
						    ((newcon->flags & (CON_CONSDEV | CON_BOOT)) == CON_CONSDEV) &&
 | 
				
			||||||
	    !keep_bootcon) {
 | 
						    !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)
 | 
							for_each_console(con)
 | 
				
			||||||
			if (con->flags & CON_BOOT)
 | 
								if (con->flags & CON_BOOT)
 | 
				
			||||||
				unregister_console(con);
 | 
									unregister_console(con);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue