ACPI: event: Remove redundant initialization of local variable
authorShaokun Zhang <zhangshaokun@hisilicon.com>
Thu, 20 May 2021 02:39:08 +0000 (10:39 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 21 May 2021 17:15:28 +0000 (19:15 +0200)
'error' will be initialized, so clean up the redundant initialization.

Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/event.c

index 92e59f4..bfb16cf 100644 (file)
@@ -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;