Removed an possible error were the given elem in the linked list is the only one and isn't removed because of this line

This commit is contained in:
Ulysse Cura 2025-08-06 10:29:18 +02:00
parent 1e31fe03f1
commit 40c39f2e07
1 changed files with 0 additions and 1 deletions

View File

@ -223,7 +223,6 @@ void linked_list_insert(linked_list_t *linked_list, void *data, const size_t ind
void linked_list_remove_elem(linked_list_t *linked_list, elem_t *elem)
{
if(!elem) return;
if(!elem->prev && !elem->next) return;
if(elem == linked_list->first)
{