Commit d9d9bd97 authored by Levi Yun's avatar Levi Yun Committed by Andrew Morton

maple_tree: change return type of mas_split_final_node as void.

mas_split_final_node() always returns true and its return value is never
checked.

Change return type to void.

Link: https://lkml.kernel.org/r/20231109160821.16248-2-ppbuk5246@gmail.comSigned-off-by: default avatarLevi Yun <ppbuk5246@gmail.com>
Reviewed-by: default avatarLiam R. Howlett <Liam.Howlett@oracle.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent d19b1a17
...@@ -3132,7 +3132,7 @@ static inline void mas_destroy_rebalance(struct ma_state *mas, unsigned char end ...@@ -3132,7 +3132,7 @@ static inline void mas_destroy_rebalance(struct ma_state *mas, unsigned char end
* @mas: The maple state * @mas: The maple state
* @height: The height of the tree in case it's a new root. * @height: The height of the tree in case it's a new root.
*/ */
static inline bool mas_split_final_node(struct maple_subtree_state *mast, static inline void mas_split_final_node(struct maple_subtree_state *mast,
struct ma_state *mas, int height) struct ma_state *mas, int height)
{ {
struct maple_enode *ancestor; struct maple_enode *ancestor;
...@@ -3156,7 +3156,6 @@ static inline bool mas_split_final_node(struct maple_subtree_state *mast, ...@@ -3156,7 +3156,6 @@ static inline bool mas_split_final_node(struct maple_subtree_state *mast,
mast->l->node = ancestor; mast->l->node = ancestor;
mab_mas_cp(mast->bn, 0, mt_slots[mast->bn->type] - 1, mast->l, true); mab_mas_cp(mast->bn, 0, mt_slots[mast->bn->type] - 1, mast->l, true);
mas->offset = mast->bn->b_end - 1; mas->offset = mast->bn->b_end - 1;
return true;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment