]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ACPI / processor: remove pointless variable initialization
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Sat, 15 Sep 2012 20:43:05 +0000 (22:43 +0200)
committerRafael 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

index 9c9288b7e4106186a70cc4abe23aa5362ba8885c..e78c2a52ea46665fe3ea31a7e79ba7f5cc5c38b2 100644 (file)
@@ -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;