From: Shaokun Zhang Date: Thu, 20 May 2021 02:39:08 +0000 (+0800) Subject: ACPI: event: Remove redundant initialization of local variable X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f00d2d32cc6766fdc03ccfc865f08cc081df5b5f;p=linux.git ACPI: event: Remove redundant initialization of local variable 'error' will be initialized, so clean up the redundant initialization. Signed-off-by: Shaokun Zhang [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/event.c b/drivers/acpi/event.c index 92e59f45329bc..bfb16cf8f8078 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;