ACPI: remove unnecessary INIT_LIST_HEAD

There is no need to initialize the node before appending it to the list.

Signed-off-by: Andy Shevchenko <[email protected]>
Reviewed-by: Mika Westerberg <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
Andy Shevchenko 2012-11-27 13:49:36 +01:00 • committed by Rafael J. Wysocki
commit 752cad760b

View file

@ -426,7 +426,6 @@ static acpi_status acpi_dev_new_resource_entry(struct resource *r,
c->error = -ENOMEM;
return AE_NO_MEMORY;
}
INIT_LIST_HEAD(&rentry->node);
rentry->res = *r;
list_add_tail(&rentry->node, c->list);
c->count++;