mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 23:51:33 +00:00
autoboot: move CONFIG_SILENT_CONSOLE handling
Factor out the same code from the callees to the caller. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Stefan Roese <sr@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
parent
d8da8298ad
commit
09b9d9e55f
1 changed files with 10 additions and 11 deletions
|
@ -202,11 +202,6 @@ static int __abortboot(int bootdelay)
|
|||
if (!abort)
|
||||
debug_bootkeys("key timeout\n");
|
||||
|
||||
#ifdef CONFIG_SILENT_CONSOLE
|
||||
if (abort)
|
||||
gd->flags &= ~GD_FLG_SILENT;
|
||||
#endif
|
||||
|
||||
return abort;
|
||||
}
|
||||
|
||||
|
@ -263,18 +258,22 @@ static int __abortboot(int bootdelay)
|
|||
|
||||
putc('\n');
|
||||
|
||||
#ifdef CONFIG_SILENT_CONSOLE
|
||||
if (abort)
|
||||
gd->flags &= ~GD_FLG_SILENT;
|
||||
#endif
|
||||
|
||||
return abort;
|
||||
}
|
||||
# endif /* CONFIG_AUTOBOOT_KEYED */
|
||||
|
||||
static int abortboot(int bootdelay)
|
||||
{
|
||||
return __abortboot(bootdelay);
|
||||
int abort;
|
||||
|
||||
abort = __abortboot(bootdelay);
|
||||
|
||||
#ifdef CONFIG_SILENT_CONSOLE
|
||||
if (abort)
|
||||
gd->flags &= ~GD_FLG_SILENT;
|
||||
#endif
|
||||
|
||||
return abort;
|
||||
}
|
||||
|
||||
static void process_fdt_options(const void *blob)
|
||||
|
|
Loading…
Reference in a new issue