diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2013-03-12 14:25:00 +0100 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-03-15 05:35:58 +0100 |
commit | 8b8fa62c60e03a53c46324075a8dc25821741daa (patch) | |
tree | 0ae18b4534472fbf870461c050789f5ddabbf0d3 /virt/kvm/assigned-dev.c | |
parent | tracing: Consolidate updating of count for traceon/off (diff) | |
download | linux-8b8fa62c60e03a53c46324075a8dc25821741daa.tar.xz linux-8b8fa62c60e03a53c46324075a8dc25821741daa.zip |
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>
Diffstat (limited to 'virt/kvm/assigned-dev.c')
0 files changed, 0 insertions, 0 deletions