diff --git a/include/etl/intrusive_links.h b/include/etl/intrusive_links.h index 1ca2479e6..9c0e471c0 100644 --- a/include/etl/intrusive_links.h +++ b/include/etl/intrusive_links.h @@ -945,8 +945,7 @@ namespace etl { TLink* current = &first; ((current->etl_next = &links, static_cast(links).etl_previous = current, current = &links), ...); - current->etl_next = ETL_NULLPTR; - + return current; } @@ -959,12 +958,10 @@ namespace etl { TLink* current = first; ((current->etl_next = links, static_cast(links)->etl_previous = current, current = links), ...); - current->etl_next = ETL_NULLPTR; return current; } #elif ETL_USING_CPP11 - //*************************************************************************** /// Create a linked list from a number of bidirectional_link nodes. //***************************************************************************