diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2012-11-27 07:49:36 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-11-27 07:49:36 -0500 |
commit | 752cad760b19e85926341880dc317a99f400eacc (patch) | |
tree | a02aa226a378e71a83d1bfa02734a2463a3337fd | |
parent | 5923f986ac191a32640429d054b94af185ec73a8 (diff) |
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 <andriy.shevchenko@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/acpi/resource.c | 1 |
1 files changed, 0 insertions, 1 deletions
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, | |||
426 | c->error = -ENOMEM; | 426 | c->error = -ENOMEM; |
427 | return AE_NO_MEMORY; | 427 | return AE_NO_MEMORY; |
428 | } | 428 | } |
429 | INIT_LIST_HEAD(&rentry->node); | ||
430 | rentry->res = *r; | 429 | rentry->res = *r; |
431 | list_add_tail(&rentry->node, c->list); | 430 | list_add_tail(&rentry->node, c->list); |
432 | c->count++; | 431 | c->count++; |