]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
bootm: Drop arguments from bootm_start()
authorSimon Glass <sjg@chromium.org>
Sat, 18 Nov 2023 21:04:54 +0000 (14:04 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 13 Dec 2023 16:51:24 +0000 (11:51 -0500)
This function does not use its arguments. Drop them.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
boot/bootm.c

index cb61485c226cb213c7ed55a76177446cd5fbacb5..fda97706fc264de68ff20d00ac8dc6d7f1a7f9a1 100644 (file)
@@ -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);