autoboot: Use if() for CONFIG_SILENT_CONSOLE
Avoid an #ifdef in this function, to improve readability. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
		
							parent
							
								
									88fa4beb63
								
							
						
					
					
						commit
						42b4d14e34
					
				| 
						 | 
					@ -286,10 +286,8 @@ static int abortboot(int bootdelay)
 | 
				
			||||||
	if (bootdelay >= 0)
 | 
						if (bootdelay >= 0)
 | 
				
			||||||
		abort = __abortboot(bootdelay);
 | 
							abort = __abortboot(bootdelay);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef CONFIG_SILENT_CONSOLE
 | 
						if (IS_ENABLED(CONFIG_SILENT_CONSOLE) && abort)
 | 
				
			||||||
	if (abort)
 | 
					 | 
				
			||||||
		gd->flags &= ~GD_FLG_SILENT;
 | 
							gd->flags &= ~GD_FLG_SILENT;
 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return abort;
 | 
						return abort;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue