summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/event.c
diff options
context:
space:
mode:
authorShaokun Zhang <zhangshaokun@hisilicon.com>2021-05-20 04:39:08 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-05-21 19:15:28 +0200
commitf00d2d32cc6766fdc03ccfc865f08cc081df5b5f (patch)
tree564975bb0aede6898cd7430bb2ace61afb746ab9 /drivers/acpi/event.c
parentACPI: sbshc: Fix fall-through warning for Clang (diff)
downloadlinux-f00d2d32cc6766fdc03ccfc865f08cc081df5b5f.tar.xz
linux-f00d2d32cc6766fdc03ccfc865f08cc081df5b5f.zip
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>
Diffstat (limited to 'drivers/acpi/event.c')
-rw-r--r--drivers/acpi/event.c2
1 files changed, 1 insertions, 1 deletions
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;