From 1de1a0348755ad5e57790a39059eceeb8e8aba42 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 12 Nov 2023 08:27:44 -0700 Subject: boot: Drop size parameter from image_setup_libfdt() The of_size parameter is not used, so remove it. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- boot/image-board.c | 2 +- boot/image-fdt.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'boot') diff --git a/boot/image-board.c b/boot/image-board.c index bb0ca9d7f2..75f6906cd5 100644 --- a/boot/image-board.c +++ b/boot/image-board.c @@ -908,7 +908,7 @@ int image_setup_linux(struct bootm_headers *images) } if (CONFIG_IS_ENABLED(OF_LIBFDT) && of_size) { - ret = image_setup_libfdt(images, *of_flat_tree, of_size, lmb); + ret = image_setup_libfdt(images, *of_flat_tree, lmb); if (ret) return ret; } diff --git a/boot/image-fdt.c b/boot/image-fdt.c index 08fca08b71..07e5032232 100644 --- a/boot/image-fdt.c +++ b/boot/image-fdt.c @@ -575,12 +575,13 @@ __weak int arch_fixup_fdt(void *blob) } int image_setup_libfdt(struct bootm_headers *images, void *blob, - int of_size, struct lmb *lmb) + struct lmb *lmb) { ulong *initrd_start = &images->initrd_start; ulong *initrd_end = &images->initrd_end; int ret = -EPERM; int fdt_ret; + int of_size; if (fdt_root(blob) < 0) { printf("ERROR: root node setup failed\n"); -- cgit v1.2.3