refscale: Simplify the errexit checkpoint
authorLi Zhijian <lizhijian@cn.fujitsu.com>
Mon, 25 Oct 2021 03:26:56 +0000 (11:26 +0800)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 1 Dec 2021 01:29:50 +0000 (17:29 -0800)
commitc30c876312f66b0422a1d632b8c45b6416deeec0
treea234872cf204efafa67fbd4227b6d3e5c5a849ee
parent340170fef01b18631128006de03522b671e6e2b5
refscale: Simplify the errexit checkpoint

There is only the one OOM error case in main_func(), so this commit
eliminates the errexit local variable in favor of a branch to cleanup
code.

Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/refscale.c