diff options
author | Nicholas Mc Guire <der.herr@hofr.at> | 2017-03-25 15:46:01 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-04-19 12:29:19 -0400 |
commit | 50dc7def4a9e05d1329e0cc129a5146821130998 (patch) | |
tree | 5a9e315d21a60bca497c0ddd9e628efe71b41c12 | |
parent | 6bb7ff175ea63dffebadd3f0e921618332809af9 (diff) |
rcu: Use bool value directly
The beenonline variable is declared bool so there is no need for an
explicit comparison, especially not against the constant zero.
Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
-rw-r--r-- | kernel/rcu/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index c4f195dd7c94..7c238604df18 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c | |||
@@ -3085,7 +3085,7 @@ __rcu_process_callbacks(struct rcu_state *rsp) | |||
3085 | bool needwake; | 3085 | bool needwake; |
3086 | struct rcu_data *rdp = raw_cpu_ptr(rsp->rda); | 3086 | struct rcu_data *rdp = raw_cpu_ptr(rsp->rda); |
3087 | 3087 | ||
3088 | WARN_ON_ONCE(rdp->beenonline == 0); | 3088 | WARN_ON_ONCE(!rdp->beenonline); |
3089 | 3089 | ||
3090 | /* Update RCU state based on any recent quiescent states. */ | 3090 | /* Update RCU state based on any recent quiescent states. */ |
3091 | rcu_check_quiescent_state(rsp, rdp); | 3091 | rcu_check_quiescent_state(rsp, rdp); |