projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cb2f13
)
tracing/uprobe: Remove dead code in trace_uprobe_register()
author
Peng Fan
<fanpeng@loongson.cn>
Fri, 24 Jul 2020 03:24:24 +0000
(11:24 +0800)
committer
Steven Rostedt (VMware)
<rostedt@goodmis.org>
Mon, 3 Aug 2020 20:16:46 +0000
(16:16 -0400)
In the function trace_uprobe_register(), the statement "return 0;"
out of switch case is dead code, remove it.
Link:
https://lkml.kernel.org/r/1595561064-29186-1-git-send-email-fanpeng@loongson.cn
Signed-off-by: Peng Fan <fanpeng@loongson.cn>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_uprobe.c
patch
|
blob
|
history
diff --git
a/kernel/trace/trace_uprobe.c
b/kernel/trace/trace_uprobe.c
index
fdd47f9
..
f4286c9
100644
(file)
--- a/
kernel/trace/trace_uprobe.c
+++ b/
kernel/trace/trace_uprobe.c
@@
-1456,7
+1456,6
@@
trace_uprobe_register(struct trace_event_call *event, enum trace_reg type,
default:
return 0;
}
- return 0;
}
static int uprobe_dispatcher(struct uprobe_consumer *con, struct pt_regs *regs)