* [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
* [tip: x86/microcode] x86/microcode/amd: Remove unneeded pointer arithmetic
2023-05-02 17:42 [PATCH] x86/microcode/amd: Remove unneeded pointer arithmetic Nathan Fontenot
@ 2023-05-08 12:48 ` tip-bot2 for Nathan Fontenot
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Nathan Fontenot @ 2023-05-08 12:48 UTC (permalink / raw)
To: linux-tip-commits
Cc: Nathan Fontenot, Borislav Petkov (AMD), x86, linux-kernel
The following commit has been merged into the x86/microcode branch of tip:
Commit-ID: e281d5cad1f3924edf1042441b98c25204ae0def
Gitweb: https://git.kernel.org/tip/e281d5cad1f3924edf1042441b98c25204ae0def
Author: Nathan Fontenot <nathan.fontenot@amd.com>
AuthorDate: Tue, 02 May 2023 12:42:32 -05:00
Committer: Borislav Petkov (AMD) <bp@alien8.de>
CommitterDate: Mon, 08 May 2023 14:38:38 +02:00
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
---
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 dd33ee8..f14f4ea 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;
}
^ 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®