Skip to content

Commit

Permalink
MIPS: Sibyte: Honor CONFIG_CMDLINE
Browse files Browse the repository at this point in the history
Original patch by Imre Kaloz <[email protected]>.

Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
ralfbaechle committed Jun 8, 2009
1 parent e36b80b commit e082f18
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions arch/mips/sibyte/cfe/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,13 +288,7 @@ void __init prom_init(void)
*/
cfe_cons_handle = cfe_getstdhandle(CFE_STDHANDLE_CONSOLE);
if (cfe_getenv("LINUX_CMDLINE", arcs_cmdline, CL_SIZE) < 0) {
if (argc < 0) {
/*
* It's OK for direct boot to not provide a
* command line
*/
strcpy(arcs_cmdline, "root=/dev/ram0 ");
} else {
if (argc >= 0) {
/* The loader should have set the command line */
/* too early for panic to do any good */
printk("LINUX_CMDLINE not defined in cfe.");
Expand Down

0 comments on commit e082f18

Please sign in to comment.