mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue