From nobody Fri Dec 19 04:18:34 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 055CEC77B7F for ; Mon, 8 May 2023 12:49:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234288AbjEHMtJ (ORCPT ); Mon, 8 May 2023 08:49:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233708AbjEHMtD (ORCPT ); Mon, 8 May 2023 08:49:03 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A9D63315A; Mon, 8 May 2023 05:49:01 -0700 (PDT) Date: Mon, 08 May 2023 12:48:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1683550139; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=22E6zwgdVOnD151+cuXBbZA+cn6V3HC9zP6LwmHi3uo=; b=fvfrVc+nQH/os+XZpwaXfkV1HUt5aAN/5W7ViNFDsFc7ySyquM66sBJAiZSUiP8Ixz0UlZ 4M+ifh/flUsJ+1fcvAfJjxDTROuE4IvJf0QWGPXoK/Bimai5wMHC5/UC1JsEVQiDAvtITg e3VOmMLyolkkUNNqnRw4hHvCuGEZEP//fu5V6agvqO9lbJ1rGpHXLTUFMoWaFRhPxC0EJ2 EI2psY3lQ5+b0og09PrlSaE0aZ7mqnl+CVrwrx8xcRT+7Vll1aT7bz5kANmf4oHPci4fAS x8iKYQPRJAsp+XBAd4bvJOlwJEouMezRvZ5kG8oto5E2RqUeRFWkP1/GKR7Ujw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1683550139; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=22E6zwgdVOnD151+cuXBbZA+cn6V3HC9zP6LwmHi3uo=; b=22ANs4JstIo5ddmg29tp51oy420Jkk7h9N/JLEP6o1TAcmuD6zpC4fTlSGl+8hThnwr46p UMKccKKneMd+UiDg== From: "tip-bot2 for Nathan Fontenot" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/microcode] x86/microcode/amd: Remove unneeded pointer arithmetic Cc: Nathan Fontenot , "Borislav Petkov (AMD)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230502174232.73880-1-nathan.fontenot@amd.com> References: <20230502174232.73880-1-nathan.fontenot@amd.com> MIME-Version: 1.0 Message-ID: <168355013826.404.7907670056370146878.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/microcode branch of tip: Commit-ID: e281d5cad1f3924edf1042441b98c25204ae0def Gitweb: https://git.kernel.org/tip/e281d5cad1f3924edf1042441b98c2520= 4ae0def Author: Nathan Fontenot AuthorDate: Tue, 02 May 2023 12:42:32 -05:00 Committer: Borislav Petkov (AMD) CommitterDate: Mon, 08 May 2023 14:38:38 +02:00 x86/microcode/amd: Remove unneeded pointer arithmetic Remove unneeded pointer increment arithmetic, the pointer is set at the beginning of the loop. Signed-off-by: Nathan Fontenot Signed-off-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/r/20230502174232.73880-1-nathan.fontenot@amd.= com --- arch/x86/kernel/cpu/microcode/amd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/kernel/cpu/microcode/amd.c b/arch/x86/kernel/cpu/micr= ocode/amd.c index dd33ee8..f14f4ea 100644 --- a/arch/x86/kernel/cpu/microcode/amd.c +++ b/arch/x86/kernel/cpu/microcode/amd.c @@ -78,8 +78,6 @@ static u16 find_equiv_id(struct equiv_cpu_table *et, u32 = sig) =20 if (sig =3D=3D e->installed_cpu) return e->equiv_cpu; - - e++; } return 0; }