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/acpi/cpufreq/cpufreq.c | |
parent | 91f47f155288b0116472a7ce64d8709f144a5357 (diff) |
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/acpi/cpufreq/cpufreq.c')
-rw-r--r-- | xen/arch/x86/acpi/cpufreq/cpufreq.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xen/arch/x86/acpi/cpufreq/cpufreq.c b/xen/arch/x86/acpi/cpufreq/cpufreq.c index 41466d871c..b57c3e325f 100644 --- a/xen/arch/x86/acpi/cpufreq/cpufreq.c +++ b/xen/arch/x86/acpi/cpufreq/cpufreq.c @@ -552,10 +552,9 @@ acpi_cpufreq_cpu_init(struct cpufreq_policy *policy) struct cpuinfo_x86 *c = &cpu_data[policy->cpu]; struct processor_performance *perf; - data = xmalloc(struct acpi_cpufreq_data); + data = xzalloc(struct acpi_cpufreq_data); if (!data) return -ENOMEM; - memset(data, 0, sizeof(struct acpi_cpufreq_data)); cpufreq_drv_data[cpu] = data; |