Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Shaokun Zhang and committed by
Rafael J. Wysocki
f00d2d32 45b10e3e

+1 -1
+1 -1
drivers/acpi/event.c
··· 165 165 166 166 static int __init acpi_event_init(void) 167 167 { 168 - int error = 0; 168 + int error; 169 169 170 170 if (acpi_disabled) 171 171 return 0;