[PATCH] x86/microcode/amd: Remove unneeded pointer arithmetic

From: Nathan Fontenot
Date: Tue May 02 2023 - 13:43:06 EST


From: Nathan Fontenot <nathan.fontenot@xxxxxxx>

Remove unneeded pointer increment arithmetic, the pointer is
set at the beginning of the loop.

Signed-off-by: Nathan Fontenot <nathan.fontenot@xxxxxxx>
---
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 f5fdeb1e3606..0f7cbc2f3a95 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;
}
--
2.25.1