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>
This commit is contained in:
parent
5923f986ac
commit
752cad760b
|
@ -426,7 +426,6 @@ static acpi_status acpi_dev_new_resource_entry(struct resource *r,
|
||||||
c->error = -ENOMEM;
|
c->error = -ENOMEM;
|
||||||
return AE_NO_MEMORY;
|
return AE_NO_MEMORY;
|
||||||
}
|
}
|
||||||
INIT_LIST_HEAD(&rentry->node);
|
|
||||||
rentry->res = *r;
|
rentry->res = *r;
|
||||||
list_add_tail(&rentry->node, c->list);
|
list_add_tail(&rentry->node, c->list);
|
||||||
c->count++;
|
c->count++;
|
||||||
|
|
Loading…
Reference in New Issue