summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/cpu/microcode/amd.c
diff options
context:
space:
mode:
authorNathan Fontenot <nathan.fontenot@amd.com>2023-05-02 12:42:32 -0500
committerBorislav Petkov (AMD) <bp@alien8.de>2023-05-08 14:38:38 +0200
commite281d5cad1f3924edf1042441b98c25204ae0def (patch)
tree49cc26e6c97ac1326d49a5dde62a16510800ecd9 /arch/x86/kernel/cpu/microcode/amd.c
parent37a19366e10b95380bf33e7a8b02509980399d7e (diff)
downloadlinux-e281d5cad1f3924edf1042441b98c25204ae0def.tar.gz
linux-e281d5cad1f3924edf1042441b98c25204ae0def.tar.bz2
linux-e281d5cad1f3924edf1042441b98c25204ae0def.zip
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 <nathan.fontenot@amd.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/20230502174232.73880-1-nathan.fontenot@amd.com
Diffstat (limited to 'arch/x86/kernel/cpu/microcode/amd.c')
-rw-r--r--arch/x86/kernel/cpu/microcode/amd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/microcode/amd.c b/arch/x86/kernel/cpu/microcode/amd.c
index dd33ee872339..f14f4ea0b537 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;
}