diff options
author | Simon Glass <sjg@chromium.org> | 2023-11-18 14:05:10 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-12-13 11:51:24 -0500 |
commit | 0aa923aba53ecf6a9baf36dc6e81cd25c41cd718 (patch) | |
tree | 52316c6337edd17d1bdf6032a979cd6fdc8ead9f /boot/bootm.c | |
parent | ba5e3f7f7825169d95a17cc4929143f522e82868 (diff) |
bootm: Reduce arguments to boot_get_fdt()
This function only uses one argument from bootm (argv[2]) so pass it in
directly.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'boot/bootm.c')
-rw-r--r-- | boot/bootm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/boot/bootm.c b/boot/bootm.c index cd11994e21c..5dc9cdeb244 100644 --- a/boot/bootm.c +++ b/boot/bootm.c @@ -529,8 +529,9 @@ int bootm_find_images(int flag, int argc, char *const argv[], ulong start, buf = map_sysmem(img_addr, 0); /* find flattened device tree */ - ret = boot_get_fdt(buf, flag, argc, argv, IH_ARCH_DEFAULT, - &images, &images.ft_addr, &images.ft_len); + ret = boot_get_fdt(buf, argc > 2 ? argv[2] : NULL, + IH_ARCH_DEFAULT, &images, &images.ft_addr, + &images.ft_len); if (ret) { puts("Could not find a valid device tree\n"); return 1; |