From dfe8c4843bde5ab8c0ec5536968d581125dcb96a Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 28 Sep 2011 10:50:49 +1000 Subject: [PATCH] llist-return-whether-list-is-empty-before-adding-in-llist_add-fix clarify comment Cc: Huang Ying Cc: Mathieu Desnoyers Cc: Peter Zijlstra Signed-off-by: Andrew Morton <> --- include/linux/llist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/llist.h b/include/linux/llist.h index 48f49e91bf2e..5d2356444d67 100644 --- a/include/linux/llist.h +++ b/include/linux/llist.h @@ -149,7 +149,7 @@ static inline bool llist_empty(const struct llist_head *head) * @new: new entry to be added * @head: the head for your lock-less list * - * Return whether list is empty before adding. + * Returns true if the list was empty prior to adding this entry. */ static inline bool llist_add(struct llist_node *new, struct llist_head *head) { -- 2.39.5