diff options
author | Julia Lawall <Julia.Lawall@inria.fr> | 2023-09-28 12:43:34 +0200 |
---|---|---|
committer | Masami Hiramatsu (Google) <mhiramat@kernel.org> | 2023-10-10 01:03:48 +0900 |
commit | f843249cb6a151bfe7b955dfb93ff29663c258fb (patch) | |
tree | abe88187148188868e058ca713ab2bbf7ecc6ff6 /kernel/trace | |
parent | a110d17240671f4417a2a676be48bda03fe64866 (diff) | |
download | linux-stable-f843249cb6a151bfe7b955dfb93ff29663c258fb.tar.gz linux-stable-f843249cb6a151bfe7b955dfb93ff29663c258fb.tar.bz2 linux-stable-f843249cb6a151bfe7b955dfb93ff29663c258fb.zip |
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>
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/trace_eprobe.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/trace/trace_eprobe.c b/kernel/trace/trace_eprobe.c index 72714cbf475c..03c851f57969 100644 --- a/kernel/trace/trace_eprobe.c +++ b/kernel/trace/trace_eprobe.c @@ -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; } |