修复了链表的bug

This commit is contained in:
fslongjin 2022-04-02 19:13:43 +08:00
parent 405f55624d
commit 21844c8ba4

View File

@ -119,8 +119,8 @@ static inline void list_del(struct List *entry)
* @param entry * @param entry
*/ */
entry->prev->next = entry->next; entry->next->prev = entry->prev;
entry->next = entry->prev; entry->prev->next = entry->next;
} }
static inline bool list_empty(struct List *entry) static inline bool list_empty(struct List *entry)