[PATCH 20/25] ftrace: Use bool function return values of true/false not 1/0

Joe Perches
2015-03-30T23:48:10Z

Use the normal return values for bool functions

Signed-off-by: Joe Perches <joe@perches.com>
---
kernel/trace/ftrace.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 5a2e0b5..650043b 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -2755,22 +2755,22 @@ ops_references_rec(struct ftrace_ops *ops, struct dyn_ftrace *rec)
{
/* If ops isn't enabled, ignore it */
if (!(ops->flags & FTRACE_OPS_FL_ENABLED))
- return 0;
+ return false;

/* If ops traces all mods, we already accounted for it */
if (ops_traces_mod(ops))
- return 0;
+ return false;

/* The function must be in the filter */
if (!ftrace_hash_empty(ops->func_hash->filter_hash) &&
!ftrace_lookup_ip(ops->func_hash->filter_hash, rec->ip))
- return 0;
+ return false;

/* If in notrace hash, we ignore it too */
if (ftrace_lookup_ip(ops->func_hash->notrace_hash, rec->ip))
- return 0;
+ return false;

- return 1;
+ return true;
}

static int referenced_filters(struct dyn_ftrace *rec)
--
2.1.2