aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>2009-03-26 10:24:34 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2009-03-26 10:24:23 -0400
commitced2c8bcbc5082bc112d7c7410b3f5380c77e306 (patch)
treeef4afd172bdc2e0b3b7fbe2630725b8ff665a9fa /arch/s390
parent6faf250789dfd35146a71402f9be245be82bf01e (diff)
[S390] remove duplicate nul-termination of string
strlcpy() does already NUL-terminate the destination string. Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/kernel/early.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/s390/kernel/early.c b/arch/s390/kernel/early.c
index d61eb3334edf..4d221c81c849 100644
--- a/arch/s390/kernel/early.c
+++ b/arch/s390/kernel/early.c
@@ -352,7 +352,6 @@ static void __init setup_boot_command_line(void)
352 352
353 /* copy arch command line */ 353 /* copy arch command line */
354 strlcpy(boot_command_line, COMMAND_LINE, ARCH_COMMAND_LINE_SIZE); 354 strlcpy(boot_command_line, COMMAND_LINE, ARCH_COMMAND_LINE_SIZE);
355 boot_command_line[ARCH_COMMAND_LINE_SIZE - 1] = 0;
356 355
357 /* append IPL PARM data to the boot command line */ 356 /* append IPL PARM data to the boot command line */
358 if (MACHINE_IS_VM) { 357 if (MACHINE_IS_VM) {