Skip to content

Commit f00d2d3

Browse files
zhangshkrafaeljw
authored andcommitted
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>
1 parent 45b10e3 commit f00d2d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/acpi/event.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ static int acpi_event_genetlink_init(void)
165165

166166
static int __init acpi_event_init(void)
167167
{
168-
int error = 0;
168+
int error;
169169

170170
if (acpi_disabled)
171171
return 0;

0 commit comments

Comments
 (0)