diff mbox series

[04/18] nios2: Drop separate parsing of bootm args

Message ID 20231203172622.4.I786baf70a4f8d91c3b9ce38c2501b714b03b94d8@changeid
State Superseded
Delegated to: Tom Rini
Headers show
Series Complete decoupling of bootm logic from commands | expand

Commit Message

Simon Glass Dec. 4, 2023, 12:26 a.m. UTC
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 mbox series

Patch

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;