From nobody Mon Jun 8 16:28:10 2026 Received: from out-181.mta1.migadu.com (out-181.mta1.migadu.com [95.215.58.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E4933370AFB for ; Thu, 28 May 2026 08:24:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779956675; cv=none; b=lcvnxjyYxnIz6JA8Lj69Mv0zuMBgpTXdS3mBMJEq64acGji7h9FvCgKT+a05OYL3OfiKQUXQgbnLdcK+DDqqEFhtuphu7vBvw0wNgzoKAYGxvqsrHmmXhHaOSF4Dsh0ENrMriLnG5z0mxvoi5t3l9FwJ7TcFNYpsv2Vn72JUFUs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779956675; c=relaxed/simple; bh=lkdiMKt+chuHKKhjQA49PAbKrSR82zgeKbHjBcbvxrE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UEA0g/FAWW3CGgVXsNNoMvt8D8zSyk8c7c+PKGu16HbNPo4OGRsbYdJ7D1FKC8incNxPBMTbc/vS2cCK73J3JgqNo63FsP3r8I1lbhtIjlNa6yiXai/4HyG6zOZSsKgdgpxr9tI8OO1FLhHfbXpu3271Ll9bWYgJ/HXm4IkgsqI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=IePT5ML0; arc=none smtp.client-ip=95.215.58.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="IePT5ML0" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1779956672; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=hYo3db+1PGPkP3EPtz1VuyjF5E+VRFm1vqf1aw6kaRc=; b=IePT5ML0EWqoJRpsjGFPK9RaEmWpuqkhL2RS+FKiDXEUiSN/m/+DXYcKrf/Ef+cobnELXF SCk93ngGK2cjPUPJ2CNS+bA839Jg++vy33YJuwLFIJM/zIsywyh04NWi4zJ7DEBuq92ppj PftizC92O/O7NWkigybNb42HcWUJRJo= From: Thorsten Blum To: Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" Cc: Thorsten Blum , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] powerpc/boot: drop redundant assignment in serial_edit_cmdline Date: Thu, 28 May 2026 10:23:58 +0200 Message-ID: <20260528082357.1397611-3-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=663; i=thorsten.blum@linux.dev; h=from:subject; bh=lkdiMKt+chuHKKhjQA49PAbKrSR82zgeKbHjBcbvxrE=; b=owGbwMvMwCUWt7pQ4caZUj3G02pJDFniv+f9eb68/Cur7ISvGqd27Q1bt/8ac2fxtk/Pw/Jeu V1uu1z7uKOUhUGMi0FWTJHlwawfM3xLayo3mUTshJnDygQyhIGLUwAmwr+Q4X/lWQ+uHYs/xZgu OCjEdPhV+i2NPt7guscmq1a6TDgzr0qNkeFgoulJV4baXtWLfHbxcZUblWduVXCd/SVcTHlh+/f 4newA X-Developer-Key: i=thorsten.blum@linux.dev; a=openpgp; fpr=1D60735E8AEF3BE473B69D84733678FD8DFEEAD4 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Drop the redundant buffer assignment in serial_edit_cmdline() since the cp pointer is immediately overwritten. Signed-off-by: Thorsten Blum --- 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, unsig= ned int timeout) char ch, *cp; struct serial_console_data *scdp =3D console_ops.data; =20 - cp =3D buf; count =3D strlen(buf); cp =3D &buf[count]; count++;