diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-07-30 12:40:30 +0530 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2015-08-14 18:26:22 -0700 |
commit | 76fd38ce21de506a3867768fac42729eb6d7dedf (patch) | |
tree | 69f51f19ddd7cd377e611c5d26fd90f74d5eaa42 /drivers/thermal | |
parent | 02373d7c69b4270bbab930f8a81b0721be794347 (diff) |
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.c | 2 |
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) { |