mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
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);
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user