]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/cpufreq/cpufreq_ondemand.c
cpufreq: Use sizeof(*ptr) convetion for computing sizes
[mirror_ubuntu-artful-kernel.git] / drivers / cpufreq / cpufreq_ondemand.c
index 47d4b69be7c6e4117c140ef4419c79d2b47b14c7..117278ab586968a99af32c56ed8e0a3db40cbf30 100644 (file)
@@ -482,7 +482,7 @@ static int od_init(struct dbs_data *dbs_data)
        u64 idle_time;
        int cpu;
 
-       tuners = kzalloc(sizeof(struct od_dbs_tuners), GFP_KERNEL);
+       tuners = kzalloc(sizeof(*tuners), GFP_KERNEL);
        if (!tuners) {
                pr_err("%s: kzalloc failed\n", __func__);
                return -ENOMEM;