From: Simon Glass Date: Mon, 4 Dec 2023 00:29:33 +0000 (-0700) Subject: x86: zboot: Drop intermediate zboot_go() function X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=d531499749e7069a49995f3215c783dc1c2abb68;p=u-boot.git x86: zboot: Drop intermediate zboot_go() function This function only calls zboot_go() so drop it. Signed-off-by: Simon Glass --- 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;