]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/nios2/lib/bootm.c
Clarify bootm OS arguments
[karo-tx-uboot.git] / arch / nios2 / lib / bootm.c
index f32be52108212477507b51b163fbe0563a0e7874..114e146d9b3d0af8ccfe0c6b685d376a1bd6c099 100644 (file)
@@ -40,8 +40,8 @@ int do_bootm_linux(int flag, int argc, char * const argv[], bootm_headers_t *ima
        if (images->ft_len)
                of_flat_tree = images->ft_addr;
 #endif
        if (images->ft_len)
                of_flat_tree = images->ft_addr;
 #endif
-       if (!of_flat_tree && argc > 3)
-               of_flat_tree = (char *)simple_strtoul(argv[3], NULL, 16);
+       if (!of_flat_tree && argc > 1)
+               of_flat_tree = (char *)simple_strtoul(argv[1], NULL, 16);
        if (of_flat_tree)
                initrd_end = (ulong)of_flat_tree;
 
        if (of_flat_tree)
                initrd_end = (ulong)of_flat_tree;