diff mbox

[1/6] thermal/cpu_cooling: No need to initialize max_freq to 0

Message ID af4a4b1ed4accda9100e00b82a1f46f8af6e507d.1438239727.git.viresh.kumar@linaro.org (mailing list archive)
State Accepted
Delegated to: Zhang Rui
Headers show

Commit Message

Viresh Kumar July 30, 2015, 7:10 a.m. UTC
Its always set before getting used, don't initialize it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
 drivers/thermal/cpu_cooling.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c
index 6509c61b9648..d010c6d0d722 100644
--- a/drivers/thermal/cpu_cooling.c
+++ b/drivers/thermal/cpu_cooling.c
@@ -215,7 +215,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) {