Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4319260rwr; Mon, 8 May 2023 06:13:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6VpaPmvjNA6eoq/o9c1Ug3Mror7zxZgbHByGUoFsYHMdeRHqjiRvEvq594uZHTgA5wxN5H X-Received: by 2002:a05:6a21:329e:b0:ff:c1d8:dd8 with SMTP id yt30-20020a056a21329e00b000ffc1d80dd8mr8140791pzb.23.1683551616769; Mon, 08 May 2023 06:13:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683551616; cv=none; d=google.com; s=arc-20160816; b=kaoEP3f4R3LCRIgulMomXtzcYYBQA6wqUvf8p9TG2XyGD26SMK3zQkdlrxK1PrafBt x/fG3fo6xwT4cCubkWCfnc3lkB4Z5WIEBs2TAkjMuYRuG5uoy0DxRtrKUmLizAe11VEQ Tc58SIeFh2e0u0A1AE/ImIpZdBF05XZ3VU9K3Nsd7xpi0eTabRXd14q4oaDIS8abDsyW w5arR6AAIIk96di2MRhFaPHjDmKCytybmp74bbcCb3Z3yk8pAPMsIrAGLUSmb7b5bx7Y W8H55l9egFi9cooztqDwvyOlAK6oE5uE/HQ7mlCcB0uRfVSHl/dq94EXzb97XcefRjsw kgWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=22E6zwgdVOnD151+cuXBbZA+cn6V3HC9zP6LwmHi3uo=; b=rLjCnZMwozYSj1L6hJvA9BEB9Y9YYb2NYpOvxG38qjiYxEvtWn449BZB+wzBxXfIkl gd498G/D2EURjo0blMFQjMePfNt6ymDNLhI0JXJbyhpQfIxB+4wFpy33xPNcbUmM71py soX92tOHNUEkGr9sJdhmSxGaTRwmwm25AtoNQSFt+rEKtbaXvaY6KwOyT8qyuse2lORm v4s2YjuRGf4CRFZpVFCq0zl0wz9D7hZJJ+b4fg+XYUqJkjJaxLv4q8MSKXLLaigWr/fP cPhJF7Ujj7lOEmSXwHf0T0aECupws1KBI0Es7xz6I/V3xSgRhMrSMfcCG0hoU6oGyF/Z Inww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=fvfrVc+n; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=22ANs4Js; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a185-20020a621ac2000000b0063b86de9d22si8296370pfa.177.2023.05.08.06.13.24; Mon, 08 May 2023 06:13:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=fvfrVc+n; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=22ANs4Js; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234351AbjEHMtH (ORCPT + 99 others); Mon, 8 May 2023 08:49:07 -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: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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/e281d5cad1f3924edf1042441b98c25204ae0def 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/microcode/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) if (sig == e->installed_cpu) return e->equiv_cpu; - - e++; } return 0; }