提交 50dc7def 编写于 作者: N Nicholas Mc Guire 提交者: Paul E. McKenney

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: NNicholas Mc Guire <der.herr@hofr.at>
Signed-off-by: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
上级 6bb7ff17
...@@ -3085,7 +3085,7 @@ __rcu_process_callbacks(struct rcu_state *rsp) ...@@ -3085,7 +3085,7 @@ __rcu_process_callbacks(struct rcu_state *rsp)
bool needwake; bool needwake;
struct rcu_data *rdp = raw_cpu_ptr(rsp->rda); 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. */ /* Update RCU state based on any recent quiescent states. */
rcu_check_quiescent_state(rsp, rdp); rcu_check_quiescent_state(rsp, rdp);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册