From: Nathan Fontenot Date: Tue, 2 May 2023 17:42:32 +0000 (-0500) Subject: x86/microcode/amd: Remove unneeded pointer arithmetic X-Git-Tag: unmap-fix-20230629~27^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e281d5cad1f3924edf1042441b98c25204ae0def;p=users%2Fdwmw2%2Flinux.git 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 --- diff --git a/arch/x86/kernel/cpu/microcode/amd.c b/arch/x86/kernel/cpu/microcode/amd.c index dd33ee872339a..f14f4ea0b5374 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; }