mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-18 06:50:08 +00:00
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;
|
||||
return AE_NO_MEMORY;
|
||||
}
|
||||
INIT_LIST_HEAD(&rentry->node);
|
||||
rentry->res = *r;
|
||||
list_add_tail(&rentry->node, c->list);
|
||||
c->count++;
|
||||
|
Loading…
Reference in New Issue
Block a user