Skip to content

Commit

Permalink
cpufreq: remove useless INIT_LIST_HEAD()
Browse files Browse the repository at this point in the history
list cpu_data_list has been inited staticly through LIST_HEAD,
so there's no need to call another INIT_LIST_HEAD. Simply remove
it from cppc_cpufreq_init.

Signed-off-by: Han Wang <zjuwanghan@outlook.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
  • Loading branch information
Han Wang authored and Viresh Kumar committed Oct 4, 2021
1 parent 08ef8d3 commit 6065a67
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/cpufreq/cppc_cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -741,8 +741,6 @@ static int __init cppc_cpufreq_init(void)
if ((acpi_disabled) || !acpi_cpc_valid())
return -ENODEV;

INIT_LIST_HEAD(&cpu_data_list);

cppc_check_hisi_workaround();
cppc_freq_invariance_init();

Expand Down

0 comments on commit 6065a67

Please sign in to comment.