x86/microcode/amd: Remove unneeded pointer arithmetic

Message ID 20230502174232.73880-1-nathan.fontenot@amd.com
State New
Headers
Series x86/microcode/amd: Remove unneeded pointer arithmetic |

Commit Message

Nathan Fontenot May 2, 2023, 5:42 p.m. UTC
  From: Nathan Fontenot <nathan.fontenot@amd.com>

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

Signed-off-by: Nathan Fontenot <nathan.fontenot@amd.com>
---
 arch/x86/kernel/cpu/microcode/amd.c | 2 --
 1 file changed, 2 deletions(-)
  

Patch

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;
 }