x86: zboot: Drop intermediate zboot_go() function

This function only calls zboot_go() so drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2023-12-03 17:29:33 -07:00
committed by Tom Rini
parent cb19931ee5
commit d531499749

View File

@@ -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;