diff --git a/include/ucore/tailq.h b/include/ucore/tailq.h index ae6da60..c002ed3 100644 --- a/include/ucore/tailq.h +++ b/include/ucore/tailq.h @@ -59,7 +59,7 @@ static UC_INLINE void uc_tailq_init(struct TailQ *head) */ static UC_INLINE int uc_tailq_empty(const struct TailQ *head) { - return head->next == head->prev; + return head->next == head; } /** Insert the entry between prev and next