cpufreq: remove useless INIT_LIST_HEAD()
authorHan Wang <zjuwanghan@outlook.com>
Sun, 15 Aug 2021 13:07:29 +0000 (21:07 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 4 Oct 2021 06:57:44 +0000 (12:27 +0530)
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>
drivers/cpufreq/cppc_cpufreq.c

index d4c2702..db17196 100644 (file)
@@ -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();