From: Steven Rostedt (Red Hat) Date: Tue, 12 Mar 2013 13:25:00 +0000 (-0400) Subject: tracing: Consolidate ftrace_trace_onoff_unreg() into callback X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~134^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b8fa62c60e03a53c46324075a8dc25821741daa;p=pandora-kernel.git 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 --- Reading git-diff-tree failed