Skip to content

Commit 05ff02e

Browse files
author
Borislav Petkov
committed
x86, microcode, AMD: Remove unneeded memset call
collect_cpu_info_amd() clears its csig arg but this is done in the microcode_core's collect_cpu_info() by clearing the embedding struct ucode_cpu_info. Drop it. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com> Acked-by: Andreas Herrmann <Andreas.Herrmann3@amd.com>
1 parent 7cc2734 commit 05ff02e

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎arch/x86/kernel/microcode_amd.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ static int collect_cpu_info_amd(int cpu, struct cpu_signature *csig)
7777
struct cpuinfo_x86 *c = &cpu_data(cpu);
7878
u32 dummy;
7979

80-
memset(csig, 0, sizeof(*csig));
8180
if (c->x86_vendor != X86_VENDOR_AMD || c->x86 < 0x10) {
8281
pr_warning("microcode: CPU%d: AMD CPU family 0x%x not "
8382
"supported\n", cpu, c->x86);

0 commit comments

Comments
 (0)