diff options
author | Arnaldo Carvalho de Melo <acme@mandriva.com> | 2005-08-10 11:59:38 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-29 18:56:28 -0400 |
commit | 8c60f3fab55712f23f2bd557ceedfbb00c649f37 (patch) | |
tree | a131a54e9790b1b85e5c7f78a2e74e33af2bbd87 /include | |
parent | 540722ffc3a0d7e11d97a13e1ce6f3bc23b061c1 (diff) |
[CCID3]: Separate most of the packet history code
This also changes the list_for_each_entry_safe_continue behaviour to match its
kerneldoc comment, that is, to start after the pos passed.
Also adds several helper functions from previously open coded fragments, making
the code more clear.
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/list.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/list.h b/include/linux/list.h index 597094e0fdb5..0f2435f92db3 100644 --- a/include/linux/list.h +++ b/include/linux/list.h | |||
@@ -427,7 +427,8 @@ static inline void list_splice_init(struct list_head *list, | |||
427 | * @member: the name of the list_struct within the struct. | 427 | * @member: the name of the list_struct within the struct. |
428 | */ | 428 | */ |
429 | #define list_for_each_entry_safe_continue(pos, n, head, member) \ | 429 | #define list_for_each_entry_safe_continue(pos, n, head, member) \ |
430 | for (pos = n, n = list_entry(n->member.next, typeof(*n), member); \ | 430 | for (pos = list_entry(pos->member.next, typeof(*pos), member), \ |
431 | n = list_entry(pos->member.next, typeof(*pos), member); \ | ||
431 | &pos->member != (head); \ | 432 | &pos->member != (head); \ |
432 | pos = n, n = list_entry(n->member.next, typeof(*n), member)) | 433 | pos = n, n = list_entry(n->member.next, typeof(*n), member)) |
433 | 434 | ||