aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/au1000/common/prom.c
diff options
context:
space:
mode:
authorPete Popov <ppopov@embeddedalley.com>2005-09-13 18:52:55 -0400
committerRalf Baechle <ralf@linux-mips.org>2005-10-29 14:32:19 -0400
commit57e3e3b9187765f042c131db1a8b66bee67fc5fb (patch)
tree5b0d42e6e84fdd7b0f69e52c8b3ead2e03dbb2a9 /arch/mips/au1000/common/prom.c
parent097975fc6651ee8f43ffc930ae0c4851ec979454 (diff)
When no yamon command line is passed to the kernel, preserve the default
compiled in command line. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/au1000/common/prom.c')
-rw-r--r--arch/mips/au1000/common/prom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/au1000/common/prom.c b/arch/mips/au1000/common/prom.c
index 22e5a85af4d5..9c171afd9a53 100644
--- a/arch/mips/au1000/common/prom.c
+++ b/arch/mips/au1000/common/prom.c
@@ -75,7 +75,8 @@ void prom_init_cmdline(void)
75 } 75 }
76 if (cp != &(arcs_cmdline[0])) /* get rid of trailing space */ 76 if (cp != &(arcs_cmdline[0])) /* get rid of trailing space */
77 --cp; 77 --cp;
78 *cp = '\0'; 78 if (prom_argc > 1)
79 *cp = '\0';
79 80
80} 81}
81 82