aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-12-03 17:29:33 -0700
committerTom Rini <trini@konsulko.com>2024-04-10 13:49:16 -0600
commitd531499749e7069a49995f3215c783dc1c2abb68 (patch)
treec90fc1f2600d20f07cd9178a32f5b7560f160899 /cmd
parentcb19931ee56f52779d6dba97a0934afe97167840 (diff)
downloadu-boot-d531499749e7069a49995f3215c783dc1c2abb68.tar.gz
x86: zboot: Drop intermediate zboot_go() function
This function only calls zboot_go() so drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/x86/zboot.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/cmd/x86/zboot.c b/cmd/x86/zboot.c
index f392b6b3e4..f49cdd91a1 100644
--- a/cmd/x86/zboot.c
+++ b/cmd/x86/zboot.c
@@ -106,21 +106,12 @@ static int do_zboot_info(struct cmd_tbl *cmdtp, int flag, int argc,
return 0;
}
-static int _zboot_go(void)
-{
- int ret;
-
- ret = zboot_go();
-
- return ret;
-}
-
static int do_zboot_go(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])
{
int ret;
- ret = _zboot_go();
+ ret = zboot_go();
if (ret) {
printf("Kernel returned! (err=%d)\n", ret);
return CMD_RET_FAILURE;