Messages in this thread |  | | | Date | Mon, 23 Mar 2009 16:30:40 +0800 | | From | Li Zefan <> | | Subject | Re: [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; > }
|  |