rcu: Move common code out of if-else block
authorAkira Yokosawa <akiyks@gmail.com>
Sat, 2 Mar 2019 08:25:19 +0000 (17:25 +0900)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 26 Mar 2019 21:37:49 +0000 (14:37 -0700)
commitb2eb85b49a576515fb845cb12568b173c2bedffc
tree4b0239d53ce17b7476428f87de5084b59cf12b19
parent9145b505bbbd87c6c8d4854ec411daeb33ed3deb
rcu: Move common code out of if-else block

As the result of recent addition of "rdp->core_needs_qs = false;" in
the "if" block, now both branches of the if-else have the same
assignment.

Factor it out and reduce line count.

Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
Cc: Joel Fernandes <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Acked-by: Joel Fernandes (Google) <joel@joelfernandes.org>
kernel/rcu/tree.c