aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2014-12-04 09:41:50 +0530
committerKevin Hilman <khilman@linaro.org>2015-06-05 15:42:12 -0700
commit40852f669b1405c700e90862cf5d90fcfcdd2b84 (patch)
tree466764ebd7d6e9513e807257d02131e2cfb712dc
parenta288067ecfe0cf0a608ef3b7f73164922f668954 (diff)
downloadlinux-linaro-stable-40852f669b1405c700e90862cf5d90fcfcdd2b84.tar.gz
thermal: cpu_cooling: Pass variable instead of its type to sizeof()
Just following coding guidelines here. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Eduardo Valentin <edubezval@gmail.com> (cherry picked from commit 98d522f056568007557867d53833770dee9d8fe8) Signed-off-by: Kevin Hilman <khilman@linaro.org>
-rw-r--r--drivers/thermal/cpu_cooling.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
index a5a931726aed..537856127f78 100644
--- 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);