diff --git a/basic_intrusive_forward_list.h b/basic_intrusive_forward_list.h index 9af8c075..94d5b0d1 100644 --- a/basic_intrusive_forward_list.h +++ b/basic_intrusive_forward_list.h @@ -519,14 +519,7 @@ namespace etl p_first = p_next; // Move to the next node. } - if (p_next == nullptr) - { - return end(); - } - else - { - return iterator(*p_last); - } + return last; } //*************************************************************************