Skip to content

Commit

Permalink
ACPI / processor: remove pointless variable initialization
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
dlezcano authored and rjwysocki committed Sep 15, 2012
1 parent 38a991b commit ed1511b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/acpi/processor_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ed1511b

Please sign in to comment.