ACPI: event: Remove redundant initialization of local variable

'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>
This commit is contained in:
Shaokun Zhang 2021-05-20 10:39:08 +08:00 committed by Rafael J. Wysocki
parent 45b10e3e01
commit f00d2d32cc

View 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;