Skip to content

Commit

Permalink
tracing/eprobe: drop unneeded breaks
Browse files Browse the repository at this point in the history
Drop break after return.

Link: https://lore.kernel.org/all/[email protected]/

Signed-off-by: Julia Lawall <[email protected]>
Acked-by: Masami Hiramatsu (Google) <[email protected]>
Signed-off-by: Masami Hiramatsu (Google) <[email protected]>
  • Loading branch information
JuliaLawall authored and mhiramat committed Oct 9, 2023
1 parent a110d17 commit f843249
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions kernel/trace/trace_eprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f843249

Please sign in to comment.