]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Consolidate ftrace_trace_onoff_unreg() into callback
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Tue, 12 Mar 2013 13:25:00 +0000 (09:25 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 15 Mar 2013 04:35:58 +0000 (00:35 -0400)
commit99d5363b778258ed894b4ce45b40578f848e9ac9
tree0ae18b4534472fbf870461c050789f5ddabbf0d3
parent23ebc0fdca51941df5a1204d06d24a1f33e664c1
tracing: Consolidate ftrace_trace_onoff_unreg() into callback

The only thing ftrace_trace_onoff_unreg() does is to do a strcmp()
against the cmd parameter to determine what op to unregister. But
this compare is also done after the location that this function is
called (and returns). By moving the check for '!' to unregister after
the strcmp(), the callback function itself can just do the unregister
and we can get rid of the helper function.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_functions.c