Use the normal return values for bool functions

Signed-off-by: Joe Perches <j...@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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to