Update list, rculist and hlist
[urcu.git] / urcu / list.h
index 7ccb76aeee760f0686155c0de34e568fc49fc50b..82c2ea4b9375855313c5b6cfaa5922415dfdeaea 100644 (file)
@@ -65,12 +65,19 @@ list_add_tail (list_t *newp, list_t *head)
 }
 
 
+/* Remove element from list.  */
+static inline void
+__list_del (list_t *prev, list_t *next)
+{
+  next->prev = prev;
+  prev->next = next;
+}
+
 /* Remove element from list.  */
 static inline void
 list_del (list_t *elem)
 {
-  elem->next->prev = elem->prev;
-  elem->prev->next = elem->next;
+  __list_del (elem->prev, elem->next);
 }
 
 
This page took 0.022287 seconds and 4 git commands to generate.