mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04: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 <[email protected]> Reviewed-by: Mika Westerberg <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
5923f986ac
commit
752cad760b
1 changed files with 0 additions and 1 deletions
|
|
@ -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 a new issue