summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq.c
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2005-10-21 00:17:43 +0200
committerDave Jones <davej@redhat.com>2005-10-21 00:17:43 +0200
commite98df50c5200ae3c748d69002a8827afc9d2eae2 (patch)
tree885c86b8b573d22176435b51f146bc6177acc13c /drivers/cpufreq/cpufreq.c
parent[CPUFREQ] kzalloc conversions for i386 drivers. (diff)
downloadlinux-e98df50c5200ae3c748d69002a8827afc9d2eae2.tar.xz
linux-e98df50c5200ae3c748d69002a8827afc9d2eae2.zip
[CPUFREQ] kzalloc conversions for cpufreq core.
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq.c')
-rw-r--r--drivers/cpufreq/cpufreq.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index 109d62ccf651..cfe1d0a2262d 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -595,12 +595,11 @@ static int cpufreq_add_dev (struct sys_device * sys_dev)
goto module_out;
}
- policy = kmalloc(sizeof(struct cpufreq_policy), GFP_KERNEL);
+ policy = kzalloc(sizeof(struct cpufreq_policy), GFP_KERNEL);
if (!policy) {
ret = -ENOMEM;
goto nomem_out;
}
- memset(policy, 0, sizeof(struct cpufreq_policy));
policy->cpu = cpu;
policy->cpus = cpumask_of_cpu(cpu);