thermal: cpu_cooling: no need to set cpufreq_dev to NULL
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 4 Dec 2014 04:11:52 +0000 (09:41 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Mon, 8 Dec 2014 16:08:55 +0000 (12:08 -0400)
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>
drivers/thermal/cpu_cooling.c

index 30e2ecbb75a782f2de01f9c4e59f79a070c50e52..c144493e940bb628b1780f722c03c8554ebb9733 100644 (file)
@@ -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;
This page took 0.027426 seconds and 5 git commands to generate.