Skip to content

Commit 6065a67

Browse files
Han Wangvireshk
authored andcommitted
cpufreq: remove useless INIT_LIST_HEAD()
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 <[email protected]> Signed-off-by: Viresh Kumar <[email protected]>
1 parent 08ef8d3 commit 6065a67

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/cpufreq/cppc_cpufreq.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,6 @@ static int __init cppc_cpufreq_init(void)
741741
if ((acpi_disabled) || !acpi_cpc_valid())
742742
return -ENODEV;
743743

744-
INIT_LIST_HEAD(&cpu_data_list);
745-
746744
cppc_check_hisi_workaround();
747745
cppc_freq_invariance_init();
748746

0 commit comments

Comments
 (0)