
4 Dec
2023
4 Dec
'23
1:26 a.m.
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@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