lkml.org 
[lkml]   [2021]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH -next] cpufreq: remove useless INIT_LIST_HEAD()
On 15-08-21, 21:07, Han Wang wrote:
> 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>
> ---
> drivers/cpufreq/cppc_cpufreq.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c
> index d4c27022b..db1719626 100644
> --- a/drivers/cpufreq/cppc_cpufreq.c
> +++ b/drivers/cpufreq/cppc_cpufreq.c
> @@ -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();

Applied. Thanks.

--
viresh

\
 
 \ /
  Last update: 2021-10-04 08:58    [W:0.029 / U:3.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site