rcu: Remove redundant "if" condition from rcu_gp_is_expedited()
authorPaul E. McKenney <paulmck@linux.ibm.com>
Fri, 5 Jul 2019 15:05:10 +0000 (08:05 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Mon, 12 Aug 2019 18:25:06 +0000 (11:25 -0700)
commitb823cafa7501f946a37dce5aa1e576a0b2f31ed9
tree06da088fd881e806383351defbb57e862cb7fae4
parente78a7614f3876ac649b3df608789cb6ef74d0480
rcu: Remove redundant "if" condition from rcu_gp_is_expedited()

Because rcu_expedited_nesting is initialized to 1 and not decremented
until just before init is spawned, rcu_expedited_nesting is guaranteed
to be non-zero whenever rcu_scheduler_active == RCU_SCHEDULER_INIT.
This commit therefore removes this redundant "if" equality test.

Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
kernel/rcu/update.c