projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02373d7
)
thermal/cpu_cooling: No need to initialize max_freq to 0
author
Viresh Kumar
<viresh.kumar@linaro.org>
Thu, 30 Jul 2015 07:10:30 +0000
(12:40 +0530)
committer
Eduardo 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
patch
|
blob
|
history
diff --git
a/drivers/thermal/cpu_cooling.c
b/drivers/thermal/cpu_cooling.c
index
5ae0524
..
c7572df
100644
(file)
--- 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) {