Skip to content

Commit

Permalink
x86/microcode/amd: Remove unneeded pointer arithmetic
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Nathan Fontenot authored and Borislav Petkov (AMD) committed May 8, 2023
1 parent 37a1936 commit e281d5c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/x86/kernel/cpu/microcode/amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e281d5c

Please sign in to comment.