projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45b10e3
)
ACPI: event: Remove redundant initialization of local variable
author
Shaokun Zhang
<zhangshaokun@hisilicon.com>
Thu, 20 May 2021 02:39:08 +0000
(10:39 +0800)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Fri, 21 May 2021 17:15:28 +0000
(19:15 +0200)
'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>
drivers/acpi/event.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/event.c
b/drivers/acpi/event.c
index 92e59f45329bc576c97ca3c702cd40462fe1c22f..bfb16cf8f80785b25a1fa21c754863036d6c7b80 100644
(file)
--- 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;