[S390] remove duplicate nul-termination of string
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Thu, 26 Mar 2009 14:24:34 +0000 (15:24 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 26 Mar 2009 14:24:23 +0000 (15:24 +0100)
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>
arch/s390/kernel/early.c

index d61eb3334edf8858b9aa9e32ff6d8f630935bb38..4d221c81c84941a13f3350a4f539b231d05cc8d2 100644 (file)
@@ -352,7 +352,6 @@ static void __init setup_boot_command_line(void)
 
        /* copy arch command line */
        strlcpy(boot_command_line, COMMAND_LINE, ARCH_COMMAND_LINE_SIZE);
-       boot_command_line[ARCH_COMMAND_LINE_SIZE - 1] = 0;
 
        /* append IPL PARM data to the boot command line */
        if (MACHINE_IS_VM) {