Re: [PATCH] tracing/filters: use list_for_each_entry_safe

From: Li Zefan
Date: Mon Mar 23 2009 - 04:30:48 EST


> - 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;
> }

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/