]> git.baikalelectronics.ru Git - kernel.git/commit
tracing/kprobe: Remove unneeded extra strchr() from create_trace_kprobe()
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 24 Aug 2018 20:20:28 +0000 (16:20 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 24 Sep 2018 08:44:52 +0000 (04:44 -0400)
commit511c2546cdac403393c05e11996cf840a5c5e71f
treeaea433b3c4e989293da85f71c39694580f7563fd
parentcf80c873e685c0440e4b1c448412449c7a97917a
tracing/kprobe: Remove unneeded extra strchr() from create_trace_kprobe()

By utilizing a temporary variable, we can avoid adding another call to
strchr(). Instead, save the first call to a temp variable, and then use that
variable as the reference to set the event variable.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_kprobe.c