diff options
author | Jan Beulich <jbeulich@novell.com> | 2006-01-11 16:47:07 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-11 22:05:04 -0500 |
commit | 256ddb01ebdcb065f81487fff00be833192d8764 (patch) | |
tree | 203b5e3ab397ccc48cb62e2fb4801f6f3d15bd19 /arch/x86_64/kernel/setup.c | |
parent | 2a2d5924c249e0f73aa00d617f8d5e242ea1430d (diff) |
[PATCH] x86_64: don't copy command line twice
... reducing the amount of changes Xen has to do.
Signed-Off-By: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64/kernel/setup.c')
-rw-r--r-- | arch/x86_64/kernel/setup.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c index a5ebd03ecbd1..cc25fa6bc975 100644 --- a/arch/x86_64/kernel/setup.c +++ b/arch/x86_64/kernel/setup.c | |||
@@ -277,10 +277,6 @@ static __init void parse_cmdline_early (char ** cmdline_p) | |||
277 | int len = 0; | 277 | int len = 0; |
278 | int userdef = 0; | 278 | int userdef = 0; |
279 | 279 | ||
280 | /* Save unparsed command line copy for /proc/cmdline */ | ||
281 | memcpy(saved_command_line, COMMAND_LINE, COMMAND_LINE_SIZE); | ||
282 | saved_command_line[COMMAND_LINE_SIZE-1] = '\0'; | ||
283 | |||
284 | for (;;) { | 280 | for (;;) { |
285 | if (c != ' ') | 281 | if (c != ' ') |
286 | goto next_char; | 282 | goto next_char; |