]> git.baikalelectronics.ru Git - kernel.git/commit
srcu: Drop needless initialization of sdp in srcu_gp_start()
authorLukas Bulwahn <lukas.bulwahn@gmail.com>
Tue, 15 Mar 2022 08:55:49 +0000 (09:55 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 3 May 2022 17:20:57 +0000 (10:20 -0700)
commitb841ff08b4627f58ec3b53ff82403ecd4d30bf96
tree598e7e879cc75fd55e5c71a26c51640828be456f
parent203182ec86fbc032b2f9e6099c85c12383514b3a
srcu: Drop needless initialization of sdp in srcu_gp_start()

Commit 9c7ef4c30f12 ("srcu: Make Tree SRCU able to operate without
snp_node array") initializes the local variable sdp differently depending
on the srcu's state in srcu_gp_start().  Either way, this initialization
overwrites the value used when sdp is defined.

This commit therefore drops this pointless definition-time initialization.
Although there is no functional change, compiler code generation may
be affected.

Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/srcutree.c