diff options
author | Jan Beulich <jbeulich@suse.com> | 2011-10-04 14:18:30 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2011-10-04 14:18:30 +0200 |
commit | 1527de3f85fa0c94578fdd12792588e0825ef2eb (patch) | |
tree | dd39a33980d9c79ffbd93afc7fe3aa71e990c1df /xen/arch/x86/microcode_amd.c | |
parent | 91f47f155288b0116472a7ce64d8709f144a5357 (diff) | |
download | xen-1527de3f85fa0c94578fdd12792588e0825ef2eb.tar.gz xen-1527de3f85fa0c94578fdd12792588e0825ef2eb.tar.bz2 xen-1527de3f85fa0c94578fdd12792588e0825ef2eb.zip |
use xzalloc in x86 code
This includes the removal of a redundant memset() from microcode_amd.c.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/microcode_amd.c')
-rw-r--r-- | xen/arch/x86/microcode_amd.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/xen/arch/x86/microcode_amd.c b/xen/arch/x86/microcode_amd.c index 2a5ac718ed..0aa90f88da 100644 --- a/xen/arch/x86/microcode_amd.c +++ b/xen/arch/x86/microcode_amd.c @@ -231,7 +231,6 @@ static int install_equiv_cpu_table(const void *buf, uint32_t size, return -ENOMEM; } - memset(equiv_cpu_table, 0, size); memcpy(equiv_cpu_table, (const void *)&buf_pos[3], size); *offset = size + 12; /* add header length */ |