diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2011-10-31 17:13:08 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-31 17:30:57 -0700 |
commit | fc23af34b00ef444eec088f744983b9ca6c7f5d1 (patch) | |
tree | 23af07725c5cb9a185a39efe640d92a968b1708f /include/linux/llist.h | |
parent | 67220a9ea3eb9cf61de7e384b6bcaaa78f680c9d (diff) |
llist-return-whether-list-is-empty-before-adding-in-llist_add-fix
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 <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/llist.h')
-rw-r--r-- | include/linux/llist.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |