diff mbox series

[08/13] x86: zboot: Drop intermediate zboot_go() function

Message ID 20231203172933.8.Iaa270a7231e610258d361f35f5da324db9ef69c8@changeid
State Accepted
Commit d531499749e7069a49995f3215c783dc1c2abb68
Delegated to: Tom Rini
Headers show
Series Complete decoupling of zboot logic from commands | expand

Commit Message

Simon Glass Dec. 4, 2023, 12:29 a.m. UTC
This function only calls zboot_go() so drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 cmd/x86/zboot.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)
diff mbox series

Patch

diff --git a/cmd/x86/zboot.c b/cmd/x86/zboot.c
index f392b6b3e493..f49cdd91a1f8 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;