linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] TXx9: Cleanup builtin-cmdline processing
@ 2009-12-21 15:48 Atsushi Nemoto
  2009-12-24 14:05 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Atsushi Nemoto @ 2009-12-21 15:48 UTC (permalink / raw)
  To: linux-mips; +Cc: ralf

Since commit 6acc7d ("Fix and enhance built-in kernel command line")
arcs_cmdline[] does not contain built-in command line.  The commit
introduce CONFIG_CMDLINE_BOOL and CONFIG_CMDLINE_OVERRIDE to control
built-in command line, and now we can use them instead of
platform-specific built-in command line processing.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
 arch/mips/txx9/generic/setup.c |   21 ---------------------
 1 files changed, 0 insertions(+), 21 deletions(-)

diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c
index 06e801c..e27809b 100644
--- a/arch/mips/txx9/generic/setup.c
+++ b/arch/mips/txx9/generic/setup.c
@@ -160,7 +160,6 @@ static void __init prom_init_cmdline(void)
 	int argc;
 	int *argv32;
 	int i;			/* Always ignore the "-c" at argv[0] */
-	static char builtin[COMMAND_LINE_SIZE] __initdata;
 
 	if (fw_arg0 >= CKSEG0 || fw_arg1 < CKSEG0) {
 		/*
@@ -174,20 +173,6 @@ static void __init prom_init_cmdline(void)
 		argv32 = (int *)fw_arg1;
 	}
 
-	/* ignore all built-in args if any f/w args given */
-	/*
-	 * But if built-in strings was started with '+', append them
-	 * to command line args.  If built-in was started with '-',
-	 * ignore all f/w args.
-	 */
-	builtin[0] = '\0';
-	if (arcs_cmdline[0] == '+')
-		strcpy(builtin, arcs_cmdline + 1);
-	else if (arcs_cmdline[0] == '-') {
-		strcpy(builtin, arcs_cmdline + 1);
-		argc = 0;
-	} else if (argc <= 1)
-		strcpy(builtin, arcs_cmdline);
 	arcs_cmdline[0] = '\0';
 
 	for (i = 1; i < argc; i++) {
@@ -201,12 +186,6 @@ static void __init prom_init_cmdline(void)
 		} else
 			strcat(arcs_cmdline, str);
 	}
-	/* append saved builtin args */
-	if (builtin[0]) {
-		if (arcs_cmdline[0])
-			strcat(arcs_cmdline, " ");
-		strcat(arcs_cmdline, builtin);
-	}
 }
 
 static int txx9_ic_disable __initdata;
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] TXx9: Cleanup builtin-cmdline processing
  2009-12-21 15:48 [PATCH] TXx9: Cleanup builtin-cmdline processing Atsushi Nemoto
@ 2009-12-24 14:05 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2009-12-24 14:05 UTC (permalink / raw)
  To: Atsushi Nemoto; +Cc: linux-mips

On Tue, Dec 22, 2009 at 12:48:57AM +0900, Atsushi Nemoto wrote:

> Since commit 6acc7d ("Fix and enhance built-in kernel command line")
> arcs_cmdline[] does not contain built-in command line.  The commit
> introduce CONFIG_CMDLINE_BOOL and CONFIG_CMDLINE_OVERRIDE to control
> built-in command line, and now we can use them instead of
> platform-specific built-in command line processing.

Thanks Atsushi-San, applied!

  Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-12-24 14:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-21 15:48 [PATCH] TXx9: Cleanup builtin-cmdline processing Atsushi Nemoto
2009-12-24 14:05 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).