Skip to content

Commit ed1511b

Browse files
dlezcanorjwysocki
authored andcommitted
ACPI / processor: remove pointless variable initialization
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]>
1 parent 38a991b commit ed1511b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/acpi/processor_driver.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,8 +905,6 @@ static int __init acpi_processor_init(void)
905905
if (acpi_disabled)
906906
return 0;
907907

908-
memset(&errata, 0, sizeof(errata));
909-
910908
result = acpi_bus_register_driver(&acpi_processor_driver);
911909
if (result < 0)
912910
return result;

0 commit comments

Comments
 (0)