From: Borislav Petkov Date: Wed, 5 Jan 2011 17:04:11 +0000 (+0100) Subject: x86, microcode, AMD: Remove unneeded memset call X-Git-Tag: upstream/snapshot3+hdmi~11248^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=05ff02e4c0686051fcb074aec92df03f2c184fd1;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Acked-by: Andreas Herrmann --- diff --git a/arch/x86/kernel/microcode_amd.c b/arch/x86/kernel/microcode_amd.c index 8b58fc1..274fa40 100644 --- a/arch/x86/kernel/microcode_amd.c +++ b/arch/x86/kernel/microcode_amd.c @@ -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);