summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorNicholas Mc Guire <der.herr@hofr.at>2017-03-25 20:46:01 +0100
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-04-19 09:29:19 -0700
commit50dc7def4a9e05d1329e0cc129a5146821130998 (patch)
tree5a9e315d21a60bca497c0ddd9e628efe71b41c12 /kernel
parent6bb7ff175ea63dffebadd3f0e921618332809af9 (diff)
downloadlinux-50dc7def4a9e05d1329e0cc129a5146821130998.tar.gz
linux-50dc7def4a9e05d1329e0cc129a5146821130998.tar.bz2
linux-50dc7def4a9e05d1329e0cc129a5146821130998.zip
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rcu/tree.c2
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)
bool needwake;
struct rcu_data *rdp = raw_cpu_ptr(rsp->rda);
- WARN_ON_ONCE(rdp->beenonline == 0);
+ WARN_ON_ONCE(!rdp->beenonline);
/* Update RCU state based on any recent quiescent states. */
rcu_check_quiescent_state(rsp, rdp);