mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-09 02:46:47 +00:00
修复了链表的bug
This commit is contained in:
parent
405f55624d
commit
21844c8ba4
@ -119,8 +119,8 @@ static inline void list_del(struct List *entry)
|
||||
* @param entry 待删除的节点
|
||||
*/
|
||||
|
||||
entry->prev->next = entry->next;
|
||||
entry->next = entry->prev;
|
||||
entry->next->prev = entry->prev;
|
||||
entry->prev->next = entry->next;
|
||||
}
|
||||
|
||||
static inline bool list_empty(struct List *entry)
|
||||
|
Loading…
x
Reference in New Issue
Block a user