aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/cpu/baytrail/valleyview.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-09-06 22:17:36 +0900
committerTom Rini <trini@konsulko.com>2016-09-23 17:53:49 -0400
commit0a8547a250486ca642973b295252180d7e180ab8 (patch)
tree4a8838c600ac288e6b8913112aae10a02c86cf1a /arch/x86/cpu/baytrail/valleyview.c
parent8319aeb1dad46c4b6d35ea16a5697ff8160dd4d1 (diff)
downloadu-boot-midas-0a8547a250486ca642973b295252180d7e180ab8.tar.gz
u-boot-midas-0a8547a250486ca642973b295252180d7e180ab8.tar.bz2
u-boot-midas-0a8547a250486ca642973b295252180d7e180ab8.zip
x86: squash lines for immediate return
arch_cpu_init() can be simpler by this refactoring. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu/baytrail/valleyview.c')
-rw-r--r--arch/x86/cpu/baytrail/valleyview.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/x86/cpu/baytrail/valleyview.c b/arch/x86/cpu/baytrail/valleyview.c
index b31f24e262..b312d9f9fb 100644
--- a/arch/x86/cpu/baytrail/valleyview.c
+++ b/arch/x86/cpu/baytrail/valleyview.c
@@ -25,15 +25,9 @@ int cpu_mmc_init(bd_t *bis)
#ifndef CONFIG_EFI_APP
int arch_cpu_init(void)
{
- int ret;
-
post_code(POST_CPU_INIT);
- ret = x86_cpu_init_f();
- if (ret)
- return ret;
-
- return 0;
+ return x86_cpu_init_f();
}
int arch_misc_init(void)