tracepoint: Simplify tracepoint module search
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Wed, 9 Apr 2014 00:09:40 +0000 (20:09 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 9 Apr 2014 00:45:34 +0000 (20:45 -0400)
commiteb7d035c59431bb12e1aa6e69ddd3940352faddb
treea4e39481eade88644bae57261605cb393b75e451
parentde7b2973903c6cc50b31ee5682a69b2219b9919d
tracepoint: Simplify tracepoint module search

Instead of copying the num_tracepoints and tracepoints_ptrs from
the module structure to the tp_mod structure, which only uses it to
find the module associated to tracepoints of modules that are coming
and going, simply copy the pointer to the module struct to the tracepoint
tp_module structure.

Also removed un-needed brackets around an if statement.

Link: http://lkml.kernel.org/r/20140408201705.4dad2c4a@gandalf.local.home
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/tracepoint.h
kernel/tracepoint.c