diff mbox series

[4/7] maple_tree: the return value of mast_spanning_rebalance() is not used

Message ID 20241127012753.3393-5-richard.weiyang@gmail.com (mailing list archive)
State New
Headers show
Series spanning write related cleanup | expand

Commit Message

Wei Yang Nov. 27, 2024, 1:27 a.m. UTC
The return value is not used, change it to a void function.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
CC: Liam R. Howlett <Liam.Howlett@Oracle.com>
CC: Sidhartha Kumar <sidhartha.kumar@oracle.com>
CC: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
---
 lib/maple_tree.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/lib/maple_tree.c b/lib/maple_tree.c
index f5606b4d0dba..6cabee1371ec 100644
--- a/lib/maple_tree.c
+++ b/lib/maple_tree.c
@@ -2265,7 +2265,7 @@  static inline void mast_rebalance_prev(struct maple_subtree_state *mast)
  * @mast: The maple_subtree_state.
  */
 static inline
-bool mast_spanning_rebalance(struct maple_subtree_state *mast)
+void mast_spanning_rebalance(struct maple_subtree_state *mast)
 {
 	struct ma_state r_tmp = *mast->orig_r;
 	struct ma_state l_tmp = *mast->orig_l;
@@ -2284,7 +2284,7 @@  bool mast_spanning_rebalance(struct maple_subtree_state *mast)
 
 			mast_rebalance_next(mast);
 			*mast->orig_l = l_tmp;
-			return true;
+			return;
 		} else if (mast->orig_l->offset != 0) {
 			mast->orig_l->offset--;
 			do {
@@ -2295,13 +2295,13 @@  bool mast_spanning_rebalance(struct maple_subtree_state *mast)
 
 			mast_rebalance_prev(mast);
 			*mast->orig_r = r_tmp;
-			return true;
+			return;
 		}
 	} while (!mte_is_root(mast->orig_r->node));
 
 	*mast->orig_r = r_tmp;
 	*mast->orig_l = l_tmp;
-	return false;
+	return;
 }
 
 /*