From: Pete Popov Date: Tue, 13 Sep 2005 22:52:55 +0000 (+0000) Subject: When no yamon command line is passed to the kernel, preserve the default X-Git-Tag: v2.6.15-rc1~731^2~1^2~79 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57e3e3b9187765f042c131db1a8b66bee67fc5fb;p=linux-2.6 When no yamon command line is passed to the kernel, preserve the default compiled in command line. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/au1000/common/prom.c b/arch/mips/au1000/common/prom.c index 22e5a85af4..9c171afd9a 100644 --- a/arch/mips/au1000/common/prom.c +++ b/arch/mips/au1000/common/prom.c @@ -75,7 +75,8 @@ void prom_init_cmdline(void) } if (cp != &(arcs_cmdline[0])) /* get rid of trailing space */ --cp; - *cp = '\0'; + if (prom_argc > 1) + *cp = '\0'; }