diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2012-11-27 13:49:36 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-11-27 13:49:36 +0100 |
commit | 752cad760b19e85926341880dc317a99f400eacc (patch) | |
tree | a02aa226a378e71a83d1bfa02734a2463a3337fd /drivers/acpi/resource.c | |
parent | 5923f986ac191a32640429d054b94af185ec73a8 (diff) | |
download | linux-stable-752cad760b19e85926341880dc317a99f400eacc.tar.gz linux-stable-752cad760b19e85926341880dc317a99f400eacc.tar.bz2 linux-stable-752cad760b19e85926341880dc317a99f400eacc.zip |
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>
Diffstat (limited to 'drivers/acpi/resource.c')
-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, c->error = -ENOMEM; return AE_NO_MEMORY; } - INIT_LIST_HEAD(&rentry->node); rentry->res = *r; list_add_tail(&rentry->node, c->list); c->count++; |