[PATCH 04/18] nios2: Drop separate parsing of bootm args
Simon Glass
sjg at chromium.org
Mon Dec 4 01:26:20 CET 2023
This function is supposed to boot the OS. Parsing of the arguments is
done in easier phases.
The code to handle this is already here, behind an #ifdef on
CONFIG_OF_LIBFDT so rely on that.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
arch/nios2/lib/bootm.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/nios2/lib/bootm.c b/arch/nios2/lib/bootm.c
index 06c094d0f1c7..823d524c9a2d 100644
--- a/arch/nios2/lib/bootm.c
+++ b/arch/nios2/lib/bootm.c
@@ -29,8 +29,6 @@ int do_bootm_linux(int flag, int argc, char *const argv[],
if (images->ft_len)
of_flat_tree = images->ft_addr;
#endif
- if (!of_flat_tree && argc > 1)
- of_flat_tree = (char *)hextoul(argv[1], NULL);
if (of_flat_tree)
initrd_end = (ulong)of_flat_tree;
--
2.43.0.rc2.451.g8631bc7472-goog
More information about the U-Boot
mailing list