]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
thermal/cpu_cooling: No need to initialize max_freq to 0
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 30 Jul 2015 07:10:30 +0000 (12:40 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Sat, 15 Aug 2015 01:26:22 +0000 (18:26 -0700)
Its always set before getting used, don't initialize it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/cpu_cooling.c

index 5ae0524bed19a55bdc89157dc8a035fcf349f6fb..c7572dfc927adaa4b9708601821b17227810960b 100644 (file)
@@ -218,7 +218,7 @@ static int cpufreq_thermal_notifier(struct notifier_block *nb,
                                    unsigned long event, void *data)
 {
        struct cpufreq_policy *policy = data;
-       unsigned long max_freq = 0;
+       unsigned long max_freq;
        struct cpufreq_cooling_device *cpufreq_dev;
 
        switch (event) {