From: Andrew Morton Date: Wed, 28 Sep 2011 00:50:49 +0000 (+1000) Subject: llist-return-whether-list-is-empty-before-adding-in-llist_add-fix X-Git-Tag: next-20110930~1^2~67 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=dfe8c4843bde5ab8c0ec5536968d581125dcb96a;p=karo-tx-linux.git 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 <> --- 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) {