diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-04-18 19:53:07 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-06-08 18:25:27 +0300 |
commit | dcfc315b7b7a5e7668dd9cb2474708b51ab1cdb1 (patch) | |
tree | 1ffcb0f0f6c5597b85926456946e10f17a5aba1f /kernel/rcu/tree_exp.h | |
parent | ced8d6fdf8b6b4b4a8354eede7464fbc0c2c96a8 (diff) | |
download | linux-dcfc315b7b7a5e7668dd9cb2474708b51ab1cdb1.tar.xz |
rcu: Make sync_rcu_preempt_exp_done() return bool
The sync_rcu_preempt_exp_done() function returns a logical expression,
but its return type is nevertheless int. This commit therefore changes
the return type to bool.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu/tree_exp.h')
-rw-r--r-- | kernel/rcu/tree_exp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/tree_exp.h b/kernel/rcu/tree_exp.h index e513b4ab1197..dd21ca47e4b4 100644 --- a/kernel/rcu/tree_exp.h +++ b/kernel/rcu/tree_exp.h @@ -147,7 +147,7 @@ static void __maybe_unused sync_exp_reset_tree(struct rcu_state *rsp) * * Caller must hold the rcu_state's exp_mutex. */ -static int sync_rcu_preempt_exp_done(struct rcu_node *rnp) +static bool sync_rcu_preempt_exp_done(struct rcu_node *rnp) { return rnp->exp_tasks == NULL && READ_ONCE(rnp->expmask) == 0; |