projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07d888d
)
thermal: cpu_cooling: Pass variable instead of its type to sizeof()
author
Viresh Kumar
<viresh.kumar@linaro.org>
Thu, 4 Dec 2014 04:11:50 +0000
(09:41 +0530)
committer
Eduardo Valentin
<edubezval@gmail.com>
Mon, 8 Dec 2014 16:08:55 +0000
(12:08 -0400)
Just following coding guidelines here.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/cpu_cooling.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/thermal/cpu_cooling.c
b/drivers/thermal/cpu_cooling.c
index a5a931726aed24ef41ee80798987194780687aac..537856127f78de250496bfedf8edff283c6c39fe 100644
(file)
--- a/
drivers/thermal/cpu_cooling.c
+++ b/
drivers/thermal/cpu_cooling.c
@@
-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);