diff options
author | Dave Jones <davej@redhat.com> | 2005-10-20 15:17:43 -0700 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2005-10-20 15:17:43 -0700 |
commit | e98df50c5200ae3c748d69002a8827afc9d2eae2 (patch) | |
tree | 885c86b8b573d22176435b51f146bc6177acc13c /drivers/cpufreq/cpufreq.c | |
parent | bfdc708dc7d26fca66df0157b36356a2ba6166eb (diff) | |
download | op-kernel-dev-e98df50c5200ae3c748d69002a8827afc9d2eae2.zip op-kernel-dev-e98df50c5200ae3c748d69002a8827afc9d2eae2.tar.gz |
[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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 109d62c..cfe1d0a 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); |