Skip to content

Commit 493dffa

Browse files
Philipp Stannerneeraju
authored andcommitted
rculist.h: docs: Fix wrong function summary
The brief summary in the docstring for function list_next_or_null_rcu() states that the function is supposed to provide the "first" member of a list, whereas in truth it returns the next member. Change the docstring so it describes what the function actually does. Signed-off-by: Philipp Stanner <pstanner@redhat.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Neeraj Upadhyay (AMD) <neeraj.iitr10@gmail.com>
1 parent fb91e42 commit 493dffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/rculist.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ static inline void list_splice_tail_init_rcu(struct list_head *list,
355355
})
356356

357357
/**
358-
* list_next_or_null_rcu - get the first element from a list
358+
* list_next_or_null_rcu - get the next element from a list
359359
* @head: the head for the list.
360360
* @ptr: the list head to take the next element from.
361361
* @type: the type of the struct this is embedded in.

0 commit comments

Comments
 (0)