diff mbox series

[U-Boot,v2,08/18] autoboot: Use if() for CONFIG_SILENT_CONSOLE

Message ID 20190721025128.30351-9-sjg@chromium.org
State Accepted
Commit 42b4d14e34322cba4f4c855fff43688a89c0fbeb
Delegated to: Tom Rini
Headers show
Series autoboot: Tidy up autoboot code | expand

Commit Message

Simon Glass July 21, 2019, 2:51 a.m. UTC
Avoid an #ifdef in this function, to improve readability.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v2: None

 common/autoboot.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/common/autoboot.c b/common/autoboot.c
index f832808b71..45df665676 100644
--- a/common/autoboot.c
+++ b/common/autoboot.c
@@ -286,10 +286,8 @@  static int abortboot(int bootdelay)
 	if (bootdelay >= 0)
 		abort = __abortboot(bootdelay);
 
-#ifdef CONFIG_SILENT_CONSOLE
-	if (abort)
+	if (IS_ENABLED(CONFIG_SILENT_CONSOLE) && abort)
 		gd->flags &= ~GD_FLG_SILENT;
-#endif
 
 	return abort;
 }