x86, microcode, AMD: Remove unneeded memset call
authorBorislav Petkov <borislav.petkov@amd.com>
Wed, 5 Jan 2011 17:04:11 +0000 (18:04 +0100)
committerBorislav Petkov <borislav.petkov@amd.com>
Wed, 9 Feb 2011 15:05:35 +0000 (16:05 +0100)
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>
arch/x86/kernel/microcode_amd.c

index 8b58fc13e37e07cbb11ef7cd4a73fc776761d405..274fa4063c7adad184dd2f7d716e306bc4519890 100644 (file)
@@ -77,7 +77,6 @@ static int collect_cpu_info_amd(int cpu, struct cpu_signature *csig)
        struct cpuinfo_x86 *c = &cpu_data(cpu);
        u32 dummy;
 
-       memset(csig, 0, sizeof(*csig));
        if (c->x86_vendor != X86_VENDOR_AMD || c->x86 < 0x10) {
                pr_warning("microcode: CPU%d: AMD CPU family 0x%x not "
                           "supported\n", cpu, c->x86);