aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2014-12-04 09:41:52 +0530
committerKevin Hilman <khilman@linaro.org>2015-06-05 15:42:13 -0700
commit944cac03d1c35cd96cb6ed1f4057f7b52deef919 (patch)
tree94890bf459d727ef02198ebc4608e9fa49b3afde
parent2942d914260f33c108136defce355f8c6e9c9694 (diff)
downloadlinux-linaro-stable-944cac03d1c35cd96cb6ed1f4057f7b52deef919.tar.gz
thermal: cpu_cooling: no need to set cpufreq_dev to NULL
It will be overwritten soon with return value of kzalloc(). Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Eduardo Valentin <edubezval@gmail.com> (cherry picked from commit 5d3bdb8998e066fe270f2f71db7163d5ac40d989) Signed-off-by: Kevin Hilman <khilman@linaro.org>
-rw-r--r--drivers/thermal/cpu_cooling.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
index 30e2ecbb75a7..c144493e940b 100644
--- a/drivers/thermal/cpu_cooling.c
+++ b/drivers/thermal/cpu_cooling.c
@@ -451,7 +451,7 @@ __cpufreq_cooling_register(struct device_node *np,
const struct cpumask *clip_cpus)
{
struct thermal_cooling_device *cool_dev;
- struct cpufreq_cooling_device *cpufreq_dev = NULL;
+ struct cpufreq_cooling_device *cpufreq_dev;
unsigned int min = 0, max = 0;
char dev_name[THERMAL_NAME_LENGTH];
int ret = 0, i;