tracing/eprobe: drop unneeded breaks

Drop break after return.

Link: https://lore.kernel.org/all/20230928104334.41215-1-Julia.Lawall@inria.fr/

Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
This commit is contained in:
Julia Lawall 2023-09-28 12:43:34 +02:00 committed by Masami Hiramatsu (Google)
parent a110d17240
commit f843249cb6

View File

@ -788,12 +788,9 @@ find_and_get_event(const char *system, const char *event_name)
name = trace_event_name(tp_event);
if (!name || strcmp(event_name, name))
continue;
if (!trace_event_try_get_ref(tp_event)) {
if (!trace_event_try_get_ref(tp_event))
return NULL;
break;
}
return tp_event;
break;
}
return NULL;
}