projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
list: leverage list_is_head() for list_entry_is_head()
[linux-2.6-microblaze.git]
/
include
/
linux
/
list.h
diff --git
a/include/linux/list.h
b/include/linux/list.h
index
523b7c4
..
5f4b0a3
100644
(file)
--- a/
include/linux/list.h
+++ b/
include/linux/list.h
@@
-766,7
+766,7
@@
static inline size_t list_count_nodes(struct list_head *head)
* @member: the name of the list_head within the struct.
*/
#define list_entry_is_head(pos, head, member) \
-
(&pos->member ==
(head))
+
list_is_head(&pos->member,
(head))
/**
* list_for_each_entry - iterate over list of given type