aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-07-30 12:40:30 +0530
committerEduardo Valentin <edubezval@gmail.com>2015-08-14 18:26:22 -0700
commit76fd38ce21de506a3867768fac42729eb6d7dedf (patch)
tree69f51f19ddd7cd377e611c5d26fd90f74d5eaa42 /drivers/thermal
parentthermal: cpu_cooling: fix lockdep problems in cpu_cooling (diff)
downloadlinux-dev-76fd38ce21de506a3867768fac42729eb6d7dedf.tar.xz
linux-dev-76fd38ce21de506a3867768fac42729eb6d7dedf.zip
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')
-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) {