diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2021-09-14 16:40:16 +0200 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2021-10-01 03:24:06 +0200 |
commit | 29e8077ae2beea6a85ad2d0bae9c550bd5d05ed9 (patch) | |
tree | fb0b48a8735ddeb05cae4a1e305a2d86314efc22 /kernel/trace/trace_kprobe.c | |
parent | kprobes: treewide: Use 'kprobe_opcode_t *' for the code address in get_optimi... (diff) | |
download | linux-29e8077ae2beea6a85ad2d0bae9c550bd5d05ed9.tar.xz linux-29e8077ae2beea6a85ad2d0bae9c550bd5d05ed9.zip |
kprobes: Use bool type for functions which returns boolean value
Use the 'bool' type instead of 'int' for the functions which
returns a boolean value, because this makes clear that those
functions don't return any error code.
Link: https://lkml.kernel.org/r/163163041649.489837.17311187321419747536.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_kprobe.c')
-rw-r--r-- | kernel/trace/trace_kprobe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c index 3a64ba4bbad6..0e1e7ce5f7ed 100644 --- a/kernel/trace/trace_kprobe.c +++ b/kernel/trace/trace_kprobe.c @@ -97,7 +97,7 @@ static nokprobe_inline unsigned long trace_kprobe_offset(struct trace_kprobe *tk static nokprobe_inline bool trace_kprobe_has_gone(struct trace_kprobe *tk) { - return !!(kprobe_gone(&tk->rp.kp)); + return kprobe_gone(&tk->rp.kp); } static nokprobe_inline bool trace_kprobe_within_module(struct trace_kprobe *tk, |