projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37a1936
)
x86/microcode/amd: Remove unneeded pointer arithmetic
author
Nathan Fontenot
<nathan.fontenot@amd.com>
Tue, 2 May 2023 17:42:32 +0000
(12:42 -0500)
committer
Borislav Petkov (AMD)
<bp@alien8.de>
Mon, 8 May 2023 12:38:38 +0000
(14:38 +0200)
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
arch/x86/kernel/cpu/microcode/amd.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/microcode/amd.c
b/arch/x86/kernel/cpu/microcode/amd.c
index dd33ee872339aa46ad548864cd860d17196dde7b..f14f4ea0b53748c64791cdbe3d23502a25cd4623 100644
(file)
--- 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;
}