]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Simplify ftrace hash lookup code in clear_func_from_hash()
authorChangbin Du <changbin.du@gmail.com>
Tue, 10 Sep 2019 14:33:36 +0000 (22:33 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 17 Sep 2019 15:21:20 +0000 (11:21 -0400)
commit87a5727063e284c73a195e2b2b3379306a8a27ab
treeace93da8e310a960008fdf4d93448603255b1994
parent3bf15b1a6a35669924d838b05a091fd2e841a8dd
ftrace: Simplify ftrace hash lookup code in clear_func_from_hash()

Function ftrace_lookup_ip() will check empty hash table. So we don't
need extra check outside.

Link: http://lkml.kernel.org/r/20190910143336.13472-1-changbin.du@gmail.com
Signed-off-by: Changbin Du <changbin.du@gmail.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ftrace.c