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/image-fdt.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/image-fdt.c')
-rw-r--r-- | boot/image-fdt.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/boot/image-fdt.c b/boot/image-fdt.c index 6ff2d52d6c7..08fca08b710 100644 --- a/boot/image-fdt.c +++ b/boot/image-fdt.c @@ -447,19 +447,16 @@ static int select_fdt(struct bootm_headers *images, const char *select, u8 arch, return 0; } -int boot_get_fdt(void *buf, int flag, int argc, char *const argv[], uint arch, +int boot_get_fdt(void *buf, const char *select, uint arch, struct bootm_headers *images, char **of_flat_tree, ulong *of_size) { - ulong fdt_addr; - char *fdt_blob = NULL; - const char *select = NULL; + char *fdt_blob = NULL; + ulong fdt_addr; *of_flat_tree = NULL; *of_size = 0; - if (argc > 2) - select = argv[2]; if (select || genimg_has_config(images)) { int ret; |