maple_tree: refine mab_calc_split function
authorVernon Yang <vernon2gm@gmail.com>
Wed, 21 Dec 2022 06:00:58 +0000 (14:00 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 19 Jan 2023 01:12:47 +0000 (17:12 -0800)
commite11cb683b2ebc6699bc0ca200442f1b80a51553f
tree0d4b92a88d7dcc414cc08be4a8f28597cde36a62
parent46b345848261009477552d654cb2f65000c30e4d
maple_tree: refine mab_calc_split function

Invert the conditional judgment of the mid_split, to focus the return
statement in the last statement, which is easier to understand and for
better readability.

Link: https://lkml.kernel.org/r/20221221060058.609003-8-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