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>
This commit is contained in:
parent
02373d7c69
commit
76fd38ce21
|
@ -218,7 +218,7 @@ static int cpufreq_thermal_notifier(struct notifier_block *nb,
|
||||||
unsigned long event, void *data)
|
unsigned long event, void *data)
|
||||||
{
|
{
|
||||||
struct cpufreq_policy *policy = data;
|
struct cpufreq_policy *policy = data;
|
||||||
unsigned long max_freq = 0;
|
unsigned long max_freq;
|
||||||
struct cpufreq_cooling_device *cpufreq_dev;
|
struct cpufreq_cooling_device *cpufreq_dev;
|
||||||
|
|
||||||
switch (event) {
|
switch (event) {
|
||||||
|
|
Loading…
Reference in New Issue