From 42b4d14e34322cba4f4c855fff43688a89c0fbeb Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 20 Jul 2019 20:51:18 -0600 Subject: [PATCH] autoboot: Use if() for CONFIG_SILENT_CONSOLE Avoid an #ifdef in this function, to improve readability. Signed-off-by: Simon Glass --- common/autoboot.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } -- 2.25.1