From: Andrew Morton Date: Tue, 1 Nov 2011 00:13:08 +0000 (-0700) Subject: llist-return-whether-list-is-empty-before-adding-in-llist_add-fix X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fc23af34b00ef444eec088f744983b9ca6c7f5d1;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 Signed-off-by: Linus Torvalds --- diff --git a/include/linux/llist.h b/include/linux/llist.h index 7287734e08d1..801b44b07aac 100644 --- a/include/linux/llist.h +++ b/include/linux/llist.h @@ -148,7 +148,7 @@ static inline struct llist_node *llist_next(struct llist_node *node) * @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) {