Skip to contentSkip to conversation

powerpc/boot: drop redundant assignment in serial_edit_cmdline

PATCH Applied Thorsten Blum 2 participants 2 messages May 28 – Aug 3 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/boot: drop redundant assignment in serial_edit_cmdline

Drop the redundant buffer assignment in serial_edit_cmdline() since the cp pointer is immediately overwritten.

---
 arch/powerpc/boot/serial.c | 1 -
 1 file changed, 1 deletion(-)
arch/powerpc/boot/serial.c +0 -1
index c6d32a8c3612..1d221ff420fd 100644
@@ -37,7 +37,6 @@ static void serial_edit_cmdline(char *buf, int len, unsigned int timeout)
 	char ch, *cp;
 	struct serial_console_data *scdp = console_ops.data;
 
-	cp = buf;
 	count = strlen(buf);
 	cp = &buf[count];
 	count++;