projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38a991b
)
ACPI / processor: remove pointless variable initialization
author
Daniel Lezcano
<daniel.lezcano@linaro.org>
Sat, 15 Sep 2012 20:43:05 +0000
(22:43 +0200)
committer
Rafael J. Wysocki
<rjw@sisk.pl>
Sat, 15 Sep 2012 20:43:05 +0000
(22:43 +0200)
The 'errata' variable is a global variable which is set to zero,
no need to do that with a memset in the init function.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/acpi/processor_driver.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/acpi/processor_driver.c
b/drivers/acpi/processor_driver.c
index 9c9288b7e4106186a70cc4abe23aa5362ba8885c..e78c2a52ea46665fe3ea31a7e79ba7f5cc5c38b2 100644
(file)
--- a/
drivers/acpi/processor_driver.c
+++ b/
drivers/acpi/processor_driver.c
@@
-905,8
+905,6
@@
static int __init acpi_processor_init(void)
if (acpi_disabled)
return 0;
- memset(&errata, 0, sizeof(errata));
-
result = acpi_bus_register_driver(&acpi_processor_driver);
if (result < 0)
return result;