diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2014-12-03 23:11:52 -0500 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2014-12-08 11:08:55 -0500 |
commit | 5d3bdb8998e066fe270f2f71db7163d5ac40d989 (patch) | |
tree | df76e8472202a388e2e9455c126e92b65a1ad702 | |
parent | 92e615ec82c0314fb480eeb19396f4ac15bf97ef (diff) |
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>
-rw-r--r-- | drivers/thermal/cpu_cooling.c | 2 |
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, | |||
451 | const struct cpumask *clip_cpus) | 451 | const struct cpumask *clip_cpus) |
452 | { | 452 | { |
453 | struct thermal_cooling_device *cool_dev; | 453 | struct thermal_cooling_device *cool_dev; |
454 | struct cpufreq_cooling_device *cpufreq_dev = NULL; | 454 | struct cpufreq_cooling_device *cpufreq_dev; |
455 | unsigned int min = 0, max = 0; | 455 | unsigned int min = 0, max = 0; |
456 | char dev_name[THERMAL_NAME_LENGTH]; | 456 | char dev_name[THERMAL_NAME_LENGTH]; |
457 | int ret = 0, i; | 457 | int ret = 0, i; |