* list_del - deletes entry from list. * @entry: the element to delete from the list. * Note: list_empty() on entry does not return true after this, the entry is * in an undefined state. */
| 124 | * in an undefined state. |
| 125 | */ |
| 126 | static inline void list_del(struct list_head *entry) |
| 127 | { |
| 128 | __list_del(entry->prev, entry->next); |
| 129 | entry->next = (struct list_head*)LIST_POISON1; |
| 130 | entry->prev = (struct list_head*)LIST_POISON2; |
| 131 | } |
| 132 | #endif |
no test coverage detected