[PATCH 4/7] maple_tree: the return value of mast_spanning_rebalance() is not used
Wei Yang
richard.weiyang at gmail.com
Tue Nov 26 17:27:50 PST 2024
The return value is not used, change it to a void function.
Signed-off-by: Wei Yang <richard.weiyang at gmail.com>
CC: Liam R. Howlett <Liam.Howlett at Oracle.com>
CC: Sidhartha Kumar <sidhartha.kumar at oracle.com>
CC: Lorenzo Stoakes <lorenzo.stoakes at oracle.com>
---
lib/maple_tree.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
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;
}
/*
--
2.34.1
More information about the maple-tree
mailing list