Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc23af34 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 67220a9e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)
{