From: Shaokun Zhang Date: Thu, 20 May 2021 02:39:08 +0000 (+0800) Subject: ACPI: event: Remove redundant initialization of local variable X-Git-Tag: howlett/maple/20220722_2~2888^2^5~7 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f00d2d32cc6766fdc03ccfc865f08cc081df5b5f;p=users%2Fjedix%2Flinux-maple.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 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;