lkml.org 
[lkml]   [2009]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/3] tracing/events: use list_for_entry_continue
On Fri, Sep 18, 2009 at 02:07:05PM +0800, Li Zefan wrote:
> Simplify s_next() and t_next().
>
> Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
> ---




Nice.
I wonder if that can be even more simplified with
the following existing seq helpers:

extern struct list_head *seq_list_start(struct list_head *head,
loff_t pos);
extern struct list_head *seq_list_start_head(struct list_head *head,
loff_t pos);
extern struct list_head *seq_list_next(void *v, struct list_head *head,
loff_t *ppos);


That said, it's already a nice cleanup.



\
 
 \ /
  Last update: 2009-09-18 17:13    [from the cache]
©2003-2011 Jasper Spaans