diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-09-06 13:17:36 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-09-23 21:53:49 (GMT) |
commit | 0a8547a250486ca642973b295252180d7e180ab8 (patch) | |
tree | 4a8838c600ac288e6b8913112aae10a02c86cf1a /arch/x86/cpu/qemu/qemu.c | |
parent | 8319aeb1dad46c4b6d35ea16a5697ff8160dd4d1 (diff) | |
download | u-boot-0a8547a250486ca642973b295252180d7e180ab8.tar.xz |
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/qemu/qemu.c')
-rw-r--r-- | arch/x86/cpu/qemu/qemu.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/x86/cpu/qemu/qemu.c b/arch/x86/cpu/qemu/qemu.c index 680e558..c3092f2 100644 --- a/arch/x86/cpu/qemu/qemu.c +++ b/arch/x86/cpu/qemu/qemu.c @@ -139,15 +139,9 @@ static void qemu_chipset_init(void) 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(); } #ifndef CONFIG_EFI_STUB |