From: Simon Glass Date: Sat, 18 Nov 2023 21:04:54 +0000 (-0700) Subject: bootm: Drop arguments from bootm_start() X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=a50e886a7f3e42d712fb86423d0ad52546224f44;p=u-boot.git bootm: Drop arguments from bootm_start() This function does not use its arguments. Drop them. Signed-off-by: Simon Glass Reviewed-by: Tom Rini Reviewed-by: Ilias Apalodimas --- diff --git a/boot/bootm.c b/boot/bootm.c index cb61485c22..fda97706fc 100644 --- a/boot/bootm.c +++ b/boot/bootm.c @@ -69,8 +69,7 @@ static void boot_start_lmb(struct bootm_headers *images) static inline void boot_start_lmb(struct bootm_headers *images) { } #endif -static int bootm_start(struct cmd_tbl *cmdtp, int flag, int argc, - char *const argv[]) +static int bootm_start(void) { memset((void *)&images, 0, sizeof(images)); images.verify = env_get_yesno("verify"); @@ -783,7 +782,7 @@ int do_bootm_states(struct cmd_tbl *cmdtp, int flag, int argc, * any error. */ if (states & BOOTM_STATE_START) - ret = bootm_start(cmdtp, flag, argc, argv); + ret = bootm_start(); if (!ret && (states & BOOTM_STATE_PRE_LOAD)) ret = bootm_pre_load(cmdtp, flag, argc, argv);