include/slib/list.h
static inline list_head_t *
list_remove(list_head_t *element)
{
    element->prev->next = element->next;
    element->next->prev = element->prev;
    return element->next;
}
/* Remove 'element' from its list and returns the element that followed it.
 * Undefined behavior if 'element' is not in a list. */
Remove 'element' from its list and returns the element that followed it.
Undefined behavior if 'element' is not in a list.
Remove ' element ' from its list and returns the element that followed it . Undefined behavior if ' element ' is not in a list .
static inline list_head_t *
list_remove(list_head_t *element)
{
    element->prev->next = element->next;
    element->next->prev = element->prev;
    return element->next;
}
static inline list_head_t * list_remove ( list_head_t * element ) { element -> prev -> next = element -> next ; element -> next -> prev = element -> prev ; return element -> next ; }
Remove 'element' from its list and returns the element that followed it.
Remove ' element ' from its list and returns the element that followed it .