summaryrefslogtreecommitdiff
path: root/drivers/thermal/cpu_cooling.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-07-30 10:10:30 +0300
committerEduardo Valentin <edubezval@gmail.com>2015-08-15 04:26:22 +0300
commit76fd38ce21de506a3867768fac42729eb6d7dedf (patch)
tree69f51f19ddd7cd377e611c5d26fd90f74d5eaa42 /drivers/thermal/cpu_cooling.c
parent02373d7c69b4270bbab930f8a81b0721be794347 (diff)
downloadlinux-76fd38ce21de506a3867768fac42729eb6d7dedf.tar.xz
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 <viresh.kumar@linaro.org> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal/cpu_cooling.c')
-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 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) {