提交 752cad76 编写于 作者: A Andy Shevchenko 提交者: Rafael J. Wysocki

ACPI: remove unnecessary INIT_LIST_HEAD

There is no need to initialize the node before appending it to the list.
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: NMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 5923f986
......@@ -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++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册