From: Nicholas Mc Guire Date: Sat, 25 Mar 2017 19:46:01 +0000 (+0100) Subject: rcu: Use bool value directly X-Git-Tag: MMI-PSA29.97-13-9~5623^2~5^2^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=50dc7def4a9e05d1329e0cc129a5146821130998;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Paul E. McKenney --- 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);