summaryrefslogtreecommitdiffstats
path: root/lib/maple_tree.c
diff options
context:
space:
mode:
authorLevi Yun <ppbuk5246@gmail.com>2023-11-09 17:08:22 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-12-12 19:57:09 +0100
commitd9d9bd979cced7d4a51b65224b1d7f396c8b4eea (patch)
tree2a824f1449ca034fddbcef7a83d54f9a77ef017b /lib/maple_tree.c
parentmm: compaction: avoid fast_isolate_freepages blindly choose improper pageblock (diff)
downloadlinux-d9d9bd979cced7d4a51b65224b1d7f396c8b4eea.tar.xz
linux-d9d9bd979cced7d4a51b65224b1d7f396c8b4eea.zip
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.com Signed-off-by: Levi Yun <ppbuk5246@gmail.com> Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/maple_tree.c')
-rw-r--r--lib/maple_tree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/maple_tree.c b/lib/maple_tree.c
index 47f2a7a97385..dc1f45b1628d 100644
--- a/lib/maple_tree.c
+++ b/lib/maple_tree.c
@@ -3132,7 +3132,7 @@ done:
* @mas: The maple state
* @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 maple_enode *ancestor;
@@ -3156,7 +3156,6 @@ static inline bool mas_split_final_node(struct maple_subtree_state *mast,
mast->l->node = ancestor;
mab_mas_cp(mast->bn, 0, mt_slots[mast->bn->type] - 1, mast->l, true);
mas->offset = mast->bn->b_end - 1;
- return true;
}
/*