Skip to content

Commit

Permalink
ACPI: event: Remove redundant initialization of local variable
Browse files Browse the repository at this point in the history
'error' will be initialized, so clean up the redundant initialization.

Signed-off-by: Shaokun Zhang <[email protected]>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
zhangshk authored and rafaeljw committed May 21, 2021
1 parent 45b10e3 commit f00d2d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f00d2d3

Please sign in to comment.