list: search prev item in reverse order
Signed-off-by: liaoao <liaoao@xiaomi.com>
This commit is contained in:
parent
f12c4fb887
commit
4446b34b2c
|
@ -269,7 +269,7 @@
|
||||||
#define list_for_every_entry_reverse(list, entry, type, member) \
|
#define list_for_every_entry_reverse(list, entry, type, member) \
|
||||||
for(entry = container_of((list)->prev, type, member); \
|
for(entry = container_of((list)->prev, type, member); \
|
||||||
&entry->member != (list); \
|
&entry->member != (list); \
|
||||||
entry = container_of(entry->member.next, type, member))
|
entry = container_of(entry->member.prev, type, member))
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Type Definitions
|
* Public Type Definitions
|
||||||
|
|
Loading…
Reference in New Issue