Skip to contentSkip to conversation

maple_tree-change-return-type-of-mas_split_final_node-as-void.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Dec 12, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: maple_tree: change return type of mas_split_final_node as void.
has been removed from the -mm tree. Its filename was
maple_tree-change-return-type-of-mas_split_final_node-as-void.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Levi Yun <[email protected]>
Subject: maple_tree: change return type of mas_split_final_node as void.
Date: Thu, 9 Nov 2023 16:08:22 +0000

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

Change return type to void.

---

 lib/maple_tree.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
lib/maple_tree.c renamed from lib/maple_tree.c~maple_tree-change-return-type-of-mas_split_final_node-as-void +1 -2
@@ -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(
 	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;
 }
 
 /*

_

Patches currently in -mm which might be from [email protected] are