diff options
author | Yaowei Bai <bywxiaobai@163.com> | 2015-09-29 22:43:36 +0800 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-11-02 14:28:05 -0500 |
commit | c6650b2e57725abaa2e36e620d06fa576d26c21c (patch) | |
tree | 393b8d0264f1943809d113d034abaed29f4d80a9 /kernel/trace/trace_export.c | |
parent | 907bff917a659a8e50e285dc42ef51d7eaba6e62 (diff) | |
download | op-kernel-dev-c6650b2e57725abaa2e36e620d06fa576d26c21c.zip op-kernel-dev-c6650b2e57725abaa2e36e620d06fa576d26c21c.tar.gz |
tracing: ftrace_event_is_function() can return boolean
Make ftrace_event_is_function() return bool to improve readability
due to this particular function only using either one or zero as its
return value.
No functional change.
Link: http://lkml.kernel.org/r/1443537816-5788-9-git-send-email-bywxiaobai@163.com
Signed-off-by: Yaowei Bai <bywxiaobai@163.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_export.c')
-rw-r--r-- | kernel/trace/trace_export.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_export.c b/kernel/trace/trace_export.c index adabf7d..39aa7aa 100644 --- a/kernel/trace/trace_export.c +++ b/kernel/trace/trace_export.c @@ -187,7 +187,7 @@ __attribute__((section("_ftrace_events"))) *__event_##call = &event_##call; FTRACE_ENTRY_REG(call, struct_name, etype, \ PARAMS(tstruct), PARAMS(print), filter, NULL) -int ftrace_event_is_function(struct trace_event_call *call) +bool ftrace_event_is_function(struct trace_event_call *call) { return call == &event_function; } |