From 745367b218c024dfcde72c37d15da88918e37e18 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 18 Nov 2023 14:05:11 -0700 Subject: bootm: Reduce arguments to boot_get_fpga() This function only uses two arguments. The 'arch' always has a constant value, so drop it. This simplifies the function call. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- boot/bootm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'boot/bootm.c') diff --git a/boot/bootm.c b/boot/bootm.c index 5dc9cdeb244..ae3fceb392d 100644 --- a/boot/bootm.c +++ b/boot/bootm.c @@ -555,8 +555,7 @@ int bootm_find_images(int flag, int argc, char *const argv[], ulong start, #if CONFIG_IS_ENABLED(FIT) if (IS_ENABLED(CONFIG_FPGA)) { /* find bitstreams */ - ret = boot_get_fpga(argc, argv, &images, IH_ARCH_DEFAULT, - NULL, NULL); + ret = boot_get_fpga(&images); if (ret) { printf("FPGA image is corrupted or invalid\n"); return 1; -- cgit v1.2.3