Skip to content

Commit

Permalink
llist-return-whether-list-is-empty-before-adding-in-llist_add-fix
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
akpm00 authored and torvalds committed Nov 1, 2011
1 parent 67220a9 commit fc23af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/llist.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit fc23af3

Please sign in to comment.