Commit 57e3e3b9 authored by Pete Popov's avatar Pete Popov Committed by Ralf Baechle

When no yamon command line is passed to the kernel, preserve the default

compiled in command line.
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 097975fc
...@@ -75,6 +75,7 @@ void prom_init_cmdline(void) ...@@ -75,6 +75,7 @@ void prom_init_cmdline(void)
} }
if (cp != &(arcs_cmdline[0])) /* get rid of trailing space */ if (cp != &(arcs_cmdline[0])) /* get rid of trailing space */
--cp; --cp;
if (prom_argc > 1)
*cp = '\0'; *cp = '\0';
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment