浏览代码

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>
Viresh Kumar 10 年之前
父节点
当前提交
76fd38ce21
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/thermal/cpu_cooling.c

+ 1 - 1
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) {