Re: [PATCH] ACPI: Remove redundant assignment of error

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

 



On Thu, May 20, 2021 at 4:39 AM Shaokun Zhang
<zhangshaokun@xxxxxxxxxxxxx> wrote:
>
> 'error' will be initialized and cleanup the redundant initialization.
>
> Cc: "Rafael J. Wysocki" <rjw@xxxxxxxxxxxxx>
> Cc: Len Brown <lenb@xxxxxxxxxx>
> Signed-off-by: Shaokun Zhang <zhangshaokun@xxxxxxxxxxxxx>
> ---
>  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!



[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