]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
llist-return-whether-list-is-empty-before-adding-in-llist_add-fix
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 28 Sep 2011 00:50:49 +0000 (10:50 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 4 Oct 2011 07:41:51 +0000 (18:41 +1100)
clarify comment

Cc: Huang Ying <ying.huang@intel.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <>
include/linux/llist.h

index 48f49e91bf2e41dbfb99bff0870f16b434caa314..5d2356444d67aa8909e0052e762df41d3a78a801 100644 (file)
@@ -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)
 {