Re: [PATCH] ACPI: processor: Remove initialization of static variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 23, 2021 at 1:57 AM Tian Tao <tiantao6@xxxxxxxxxxxxx> wrote:
>
> Address the following checkpatch errors:
> ERROR: do not initialise statics to false
>
> Signed-off-by: Tian Tao <tiantao6@xxxxxxxxxxxxx>
> ---
>  drivers/acpi/processor_perflib.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/acpi/processor_perflib.c b/drivers/acpi/processor_perflib.c
> index 32f0f55..91c401e 100644
> --- a/drivers/acpi/processor_perflib.c
> +++ b/drivers/acpi/processor_perflib.c
> @@ -459,7 +459,7 @@ int acpi_processor_pstate_control(void)
>
>  int acpi_processor_notify_smm(struct module *calling_module)
>  {
> -       static int is_done = 0;
> +       static int is_done;
>         int result;
>
>         if (!acpi_processor_cpufreq_init)
> --

Applied as 5.13 material with minor edits in the subject and changelog, thanks!



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux