Commit e54ad8c5 authored by Rabin Vincent's avatar Rabin Vincent Committed by Ralf Baechle

MIPS: Don't add leading spacing to command lines

The leading spaces don't affect functionality but are unnecessary.
Signed-off-by: default avatarRabin Vincent <rabinv@axis.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/13180/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 105c22c5
...@@ -673,13 +673,15 @@ static void __init arch_mem_init(char **cmdline_p) ...@@ -673,13 +673,15 @@ static void __init arch_mem_init(char **cmdline_p)
strlcpy(boot_command_line, arcs_cmdline, COMMAND_LINE_SIZE); strlcpy(boot_command_line, arcs_cmdline, COMMAND_LINE_SIZE);
if (EXTEND_WITH_PROM && arcs_cmdline[0]) { if (EXTEND_WITH_PROM && arcs_cmdline[0]) {
strlcat(boot_command_line, " ", COMMAND_LINE_SIZE); if (boot_command_line[0])
strlcat(boot_command_line, " ", COMMAND_LINE_SIZE);
strlcat(boot_command_line, arcs_cmdline, COMMAND_LINE_SIZE); strlcat(boot_command_line, arcs_cmdline, COMMAND_LINE_SIZE);
} }
#if defined(CONFIG_CMDLINE_BOOL) #if defined(CONFIG_CMDLINE_BOOL)
if (builtin_cmdline[0]) { if (builtin_cmdline[0]) {
strlcat(boot_command_line, " ", COMMAND_LINE_SIZE); if (boot_command_line[0])
strlcat(boot_command_line, " ", COMMAND_LINE_SIZE);
strlcat(boot_command_line, builtin_cmdline, COMMAND_LINE_SIZE); strlcat(boot_command_line, builtin_cmdline, COMMAND_LINE_SIZE);
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment