mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86/microcode/amd: Remove unneeded pointer arithmetic
@ 2023-05-02 17:42 Nathan Fontenot
  2023-05-08 12:48 ` [tip: x86/microcode] " tip-bot2 for Nathan Fontenot
  0 siblings, 1 reply; 2+ messages in thread
From: Nathan Fontenot @ 2023-05-02 17:42 UTC (permalink / raw)
  To: x86; +Cc: linux-kernel, bpetkov, nathan.fontenot

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(-)

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-05-08 12:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-02 17:42 [PATCH] x86/microcode/amd: Remove unneeded pointer arithmetic Nathan Fontenot
2023-05-08 12:48 ` [tip: x86/microcode] " tip-bot2 for Nathan Fontenot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®