lkml.org 
[lkml]   [2009]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateMon, 23 Mar 2009 16:30:40 +0800
FromLi Zefan <>
SubjectRe: [PATCH] tracing/filters: use list_for_each_entry_safe
> -	list_for_each_safe(entry, tmp, &call->fields) {
> - field = list_entry(entry, struct ftrace_event_field, link);
> + list_for_each_entry_safe(field, next, &call->fields, link) {

Why we need _safe version ?

> if (!strcmp(field->name, name))
> return field;
> }



\
 
 \ /
  Last update: 2009-03-23 09:33    [from the cache]
©2003-2010