list: search prev item in reverse order

Signed-off-by: liaoao <liaoao@xiaomi.com>
This commit is contained in:
liaoao 2023-10-13 20:17:38 +08:00 committed by Xiang Xiao
parent f12c4fb887
commit 4446b34b2c
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@
#define list_for_every_entry_reverse(list, entry, type, member) \
for(entry = container_of((list)->prev, type, member); \
&entry->member != (list); \
entry = container_of(entry->member.next, type, member))
entry = container_of(entry->member.prev, type, member))
/****************************************************************************
* Public Type Definitions