]> git.ipfire.org Git - thirdparty/u-boot.git/blobdiff - cmd/bootz.c
command: Introduce functions to obtain command arguments
[thirdparty/u-boot.git] / cmd / bootz.c
index bcf232b4f305e6ca4dbeed8c05ce422654fda005..a652879ea5ece5e3cb983f63904cc552f93bea83 100644 (file)
@@ -54,8 +54,8 @@ static int bootz_start(struct cmd_tbl *cmdtp, int flag, int argc,
         * Handle the BOOTM_STATE_FINDOTHER state ourselves as we do not
         * have a header that provide this informaiton.
         */
-       if (bootm_find_images(image_load_addr, argc > 1 ? argv[1] : NULL,
-                             argc > 2 ? argv[2] : NULL, images->ep,
+       if (bootm_find_images(image_load_addr, cmd_arg1(argc, argv),
+                             cmd_arg2(argc, argv), images->ep,
                              zi_end - zi_start))
                return 1;