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)
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>

No differences found