From 752cad760b19e85926341880dc317a99f400eacc Mon Sep 17 00:00:00 2001 From: Andy Shevchenko Date: Tue, 27 Nov 2012 13:49:36 +0100 Subject: 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 Reviewed-by: Mika Westerberg Signed-off-by: Rafael J. Wysocki --- drivers/acpi/resource.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/acpi/resource.c') diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c index 4107c004467a..a3868f6c222a 100644 --- a/drivers/acpi/resource.c +++ b/drivers/acpi/resource.c @@ -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++; -- cgit v1.2.3