Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98d522f0 authored by Viresh Kumar's avatar Viresh Kumar Committed by Eduardo Valentin
Browse files

thermal: cpu_cooling: Pass variable instead of its type to sizeof()



Just following coding guidelines here.

Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent 07d888d8
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -476,8 +476,7 @@ __cpufreq_cooling_register(struct device_node *np,
				return ERR_PTR(-EINVAL);
		}
	}
	cpufreq_dev = kzalloc(sizeof(struct cpufreq_cooling_device),
			      GFP_KERNEL);
	cpufreq_dev = kzalloc(sizeof(*cpufreq_dev), GFP_KERNEL);
	if (!cpufreq_dev)
		return ERR_PTR(-ENOMEM);