maple_tree: refine ma_state init from mas_start()
authorVernon Yang <vernon2gm@gmail.com>
Wed, 21 Dec 2022 06:00:57 +0000 (14:00 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 19 Jan 2023 01:12:46 +0000 (17:12 -0800)
commit46b345848261009477552d654cb2f65000c30e4d
tree9f8c087ed2ff597e06e10dfad1315d1431dcee1c
parenteabb305293835b191ffe60234587ae8bf5e4e9fd
maple_tree: refine ma_state init from mas_start()

If mas->node is an MAS_START, there are three cases, and they all assign
different values to mas->node and mas->offset.  So there is no need to set
them to a default value before updating.

Update them directly to make them easier to understand and for better
readability.

Link: https://lkml.kernel.org/r/20221221060058.609003-7-vernon2gm@gmail.com
Signed-off-by: Vernon Yang <vernon2gm@gmail.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/maple_tree.c