]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
autoboot: rename abortboot_{keyed, normal} to __abortboot
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 27 Jun 2016 07:23:02 +0000 (16:23 +0900)
committerTom Rini <trini@konsulko.com>
Fri, 1 Jul 2016 21:42:55 +0000 (17:42 -0400)
Because abortboot_keyed() and abortboot_normal() are not compiled
at the same time, we can rename both of them to __abortboot().
This allows to drop #ifdef from 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>
common/autoboot.c

index 35deece7f7e59bb137930cc0afb886f7dade17d6..eb31c8875d9a0cfcc683fad80ec267fb20d7b742 100644 (file)
@@ -182,7 +182,7 @@ static int passwd_abort(uint64_t etime)
  * Watch for 'delay' seconds for autoboot stop or autoboot delay string.
  * returns: 0 -  no key string, allow autoboot 1 - got key string, abort
  */
-static int abortboot_keyed(int bootdelay)
+static int __abortboot(int bootdelay)
 {
        int abort;
        uint64_t etime = endtick(bootdelay);
@@ -216,7 +216,7 @@ static int abortboot_keyed(int bootdelay)
 static int menukey;
 #endif
 
-static int abortboot_normal(int bootdelay)
+static int __abortboot(int bootdelay)
 {
        int abort = 0;
        unsigned long ts;
@@ -274,11 +274,7 @@ static int abortboot_normal(int bootdelay)
 
 static int abortboot(int bootdelay)
 {
-#ifdef CONFIG_AUTOBOOT_KEYED
-       return abortboot_keyed(bootdelay);
-#else
-       return abortboot_normal(bootdelay);
-#endif
+       return __abortboot(bootdelay);
 }
 
 static void process_fdt_options(const void *blob)