rcu: Use true/false for return in rcu_nocb_adopt_orphan_cbs()
authorPranith Kumar <bobby.prani@gmail.com>
Tue, 8 Jul 2014 22:26:15 +0000 (18:26 -0400)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 16 Sep 2014 17:08:00 +0000 (10:08 -0700)
Return true/false in rcu_nocb_adopt_orphan_cbs() instead of 0/1 as
this function has return type of bool.

Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: Paul Gortmaker <paul.gortmaker@windriver.com>
kernel/rcu/tree_plugin.h

index 36c678b898fa086129cfed1a82d5dbc502ab7823..662584142e0c22fcd40e0455fc6f99e6c6e154a8 100644 (file)
@@ -2150,7 +2150,7 @@ static bool __maybe_unused rcu_nocb_adopt_orphan_cbs(struct rcu_state *rsp,
 
        /* If this is not a no-CBs CPU, tell the caller to do it the old way. */
        if (!rcu_is_nocb_cpu(smp_processor_id()))
-               return 0;
+               return false;
        rsp->qlen = 0;
        rsp->qlen_lazy = 0;
 
@@ -2169,7 +2169,7 @@ static bool __maybe_unused rcu_nocb_adopt_orphan_cbs(struct rcu_state *rsp,
                rsp->orphan_nxtlist = NULL;
                rsp->orphan_nxttail = &rsp->orphan_nxtlist;
        }
-       return 1;
+       return true;
 }
 
 /*