Browse Source

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 năm trước cách đây
mục cha
commit
76fd38ce21
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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) {