Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75c8b417 authored by Tom Zanussi's avatar Tom Zanussi Committed by Ingo Molnar
Browse files

tracing/filters: use list_for_each_entry_safe



Impact: cleanup

Use list_for_each_entry_safe instead of list_for_each_entry in
find_event_field().

Reported-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: default avatarTom Zanussi <tzanussi@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <1237796788.7527.35.camel@charm-linux>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent b118415b
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -147,11 +147,9 @@ int filter_print_preds(struct filter_pred **preds, char *buf)
static struct ftrace_event_field *
static struct ftrace_event_field *
find_event_field(struct ftrace_event_call *call, char *name)
find_event_field(struct ftrace_event_call *call, char *name)
{
{
	struct ftrace_event_field *field;
	struct ftrace_event_field *field, *next;
	struct list_head *entry, *tmp;


	list_for_each_safe(entry, tmp, &call->fields) {
	list_for_each_entry_safe(field, next, &call->fields, link) {
		field = list_entry(entry, struct ftrace_event_field, link);
		if (!strcmp(field->name, name))
		if (!strcmp(field->name, name))
			return field;
			return field;
	}
	}