From: Viresh Kumar Date: Thu, 30 Jul 2015 07:10:30 +0000 (+0530) Subject: thermal/cpu_cooling: No need to initialize max_freq to 0 X-Git-Tag: Ubuntu-5.2.0-15.16~10832^2~5 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=76fd38ce21de506a3867768fac42729eb6d7dedf;p=mirror_ubuntu-eoan-kernel.git thermal/cpu_cooling: No need to initialize max_freq to 0 Its always set before getting used, don't initialize it. Signed-off-by: Viresh Kumar Signed-off-by: Eduardo Valentin --- diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index 5ae0524bed19..c7572dfc927a 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -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) {