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:
parent
a110d17240
commit
f843249cb6
@ -788,12 +788,9 @@ find_and_get_event(const char *system, const char *event_name)
|
|||||||
name = trace_event_name(tp_event);
|
name = trace_event_name(tp_event);
|
||||||
if (!name || strcmp(event_name, name))
|
if (!name || strcmp(event_name, name))
|
||||||
continue;
|
continue;
|
||||||
if (!trace_event_try_get_ref(tp_event)) {
|
if (!trace_event_try_get_ref(tp_event))
|
||||||
return NULL;
|
return NULL;
|
||||||
break;
|
|
||||||
}
|
|
||||||
return tp_event;
|
return tp_event;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user