diff mbox series

ACPI: processor: Remove initialization of static variables

Message ID 1614041789-28216-1-git-send-email-tiantao6@hisilicon.com
State Accepted
Commit 41103b3bbe37bbefe78562f915f799598e2b560c
Headers show
Series ACPI: processor: Remove initialization of static variables | expand

Commit Message

Tian Tao Feb. 23, 2021, 12:56 a.m. UTC
Address the following checkpatch errors:
ERROR: do not initialise statics to false

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
---
 drivers/acpi/processor_perflib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Rafael J. Wysocki March 3, 2021, 6:38 p.m. UTC | #1
On Tue, Feb 23, 2021 at 1:57 AM Tian Tao <tiantao6@hisilicon.com> wrote:
>

> Address the following checkpatch errors:

> ERROR: do not initialise statics to false

>

> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>

> ---

>  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!
diff mbox series

Patch

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)