All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ACPI: Remove redundant assignment of error
@ 2021-05-20  2:39 Shaokun Zhang
  2021-05-21 17:16 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Shaokun Zhang @ 2021-05-20  2:39 UTC (permalink / raw)
  To: linux-acpi; +Cc: Shaokun Zhang, Rafael J. Wysocki, Len Brown

'error' will be initialized and cleanup the redundant initialization.

Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Len Brown <lenb@kernel.org>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
---
 drivers/acpi/event.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/acpi/event.c b/drivers/acpi/event.c
index 92e59f45329b..bfb16cf8f807 100644
--- a/drivers/acpi/event.c
+++ b/drivers/acpi/event.c
@@ -165,7 +165,7 @@ static int acpi_event_genetlink_init(void)
 
 static int __init acpi_event_init(void)
 {
-	int error = 0;
+	int error;
 
 	if (acpi_disabled)
 		return 0;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ACPI: Remove redundant assignment of error
  2021-05-20  2:39 [PATCH] ACPI: Remove redundant assignment of error Shaokun Zhang
@ 2021-05-21 17:16 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2021-05-21 17:16 UTC (permalink / raw)
  To: Shaokun Zhang; +Cc: ACPI Devel Maling List, Rafael J. Wysocki, Len Brown

On Thu, May 20, 2021 at 4:39 AM Shaokun Zhang
<zhangshaokun@hisilicon.com> wrote:
>
> 'error' will be initialized and cleanup the redundant initialization.
>
> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
> Cc: Len Brown <lenb@kernel.org>
> Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
> ---
>  drivers/acpi/event.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/acpi/event.c b/drivers/acpi/event.c
> index 92e59f45329b..bfb16cf8f807 100644
> --- a/drivers/acpi/event.c
> +++ b/drivers/acpi/event.c
> @@ -165,7 +165,7 @@ static int acpi_event_genetlink_init(void)
>
>  static int __init acpi_event_init(void)
>  {
> -       int error = 0;
> +       int error;
>
>         if (acpi_disabled)
>                 return 0;
> --

Applied as 5.14 material with edited subject and changelog, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-21 17:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-20  2:39 [PATCH] ACPI: Remove redundant assignment of error Shaokun Zhang
2021-05-21 17:16 ` Rafael J. Wysocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.