On Tue, Nov 27, 2012 at 11:49:21AM +0200, Andy Shevchenko wrote: > On Tue, 2012-11-27 at 11:24 +0200, Westerberg, Mika wrote: > > On Tue, Nov 27, 2012 at 11:03:45AM +0200, Andy Shevchenko wrote: > > > There is no need to initialize the node before appending it to the list. > > > > I might be missing something but why do we then have macros like: > > list_del_init() etc? > > list_del_init(&list->node) allows to reuse &list->node as a new list. > I guess the often use case of that when you extract the leaf node from > the list of lists and create a new list based on it. > > In our case we just add a node to the existed list. OK. Thanks for the explanation. Reviewed-by: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html