[PATCH] powerpc/boot: drop redundant assignment in serial_edit_cmdline

Thorsten Blum posted 1 patch 1 week, 4 days ago
arch/powerpc/boot/serial.c | 1 -
1 file changed, 1 deletion(-)
[PATCH] powerpc/boot: drop redundant assignment in serial_edit_cmdline
Posted by Thorsten Blum 1 week, 4 days ago
Drop the redundant buffer assignment in serial_edit_cmdline() since the
cp pointer is immediately overwritten.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
 arch/powerpc/boot/serial.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/powerpc/boot/serial.c b/arch/powerpc/boot/serial.c
index c6d32a8c3612..1d221ff420fd 100644
--- a/arch/powerpc/boot/serial.c
+++ b/arch/powerpc/boot/serial.c
@@ -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++;