mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
This commit is contained in:
parent
6bb7ff175e
commit
50dc7def4a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue