llist-return-whether-list-is-empty-before-adding-in-llist_add-fix
authorAndrew Morton <[email protected]>
Tue, 1 Nov 2011 00:13:08 +0000 (17:13 -0700)
committerLinus Torvalds <[email protected]>
Tue, 1 Nov 2011 00:30:57 +0000 (17:30 -0700)
clarify comment

Cc: Huang Ying <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/llist.h

index 7287734e08d1ac0fb662862491fb3719ba8fa9a4..801b44b07aac9ed2738d7efcbce164ea349adef6 100644 (file)
@@ -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)
 {