Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/adt/list.h

    r14a60e3 r74464e8  
    7272
    7373#define assert_link_not_used(link) \
    74         ASSERT(((link)->prev == NULL) && ((link)->next == NULL))
     74        ASSERT((link)->prev == NULL && (link)->next == NULL)
    7575
    7676/** Initialize doubly-linked circular list link
     
    158158NO_TRACE static inline void list_remove(link_t *link)
    159159{
    160         if ((link->prev != NULL) && (link->next != NULL)) {
    161                 link->next->prev = link->prev;
    162                 link->prev->next = link->next;
    163         }
    164        
     160        link->next->prev = link->prev;
     161        link->prev->next = link->next;
    165162        link_initialize(link);
    166163}
Note: See TracChangeset for help on using the changeset viewer.