mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-09 07:06:47 +00:00
🐛 修复了list_empty的bug
This commit is contained in:
parent
9828aff985
commit
b75504c0e5
@ -132,7 +132,7 @@ static inline bool list_empty(struct List *entry)
|
|||||||
* @param entry 入口
|
* @param entry 入口
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (entry->prev == entry->next)
|
if(entry == entry->next && entry->prev == entry)
|
||||||
return true;
|
return true;
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user