Skip to content

Commit cefbcf2

Browse files
RichardWeiYangakpm00
authored andcommitted
maple_tree: the return value of mas_root_expand() is not used
No user of the return value now, just remove it. Link: https://lkml.kernel.org/r/20241031231627.14316-3-richard.weiyang@gmail.com Signed-off-by: Wei Yang <richard.weiyang@gmail.com> Reviewed-by: Liam R. Howlett <Liam.Howlett@Oracle.com> Cc: Liam R. Howlett <Liam.Howlett@Oracle.com> Cc: Sidhartha Kumar <sidhartha.kumar@oracle.com> Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 04dafdd commit cefbcf2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/maple_tree.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3408,7 +3408,7 @@ static noinline_for_kasan void mas_commit_b_node(struct ma_wr_state *wr_mas,
34083408
* @mas: The maple state
34093409
* @entry: The entry to store into the tree
34103410
*/
3411-
static inline int mas_root_expand(struct ma_state *mas, void *entry)
3411+
static inline void mas_root_expand(struct ma_state *mas, void *entry)
34123412
{
34133413
void *contents = mas_root_locked(mas);
34143414
enum maple_type type = maple_leaf_64;
@@ -3444,7 +3444,7 @@ static inline int mas_root_expand(struct ma_state *mas, void *entry)
34443444
ma_set_meta(node, maple_leaf_64, 0, slot);
34453445
/* swap the new root into the tree */
34463446
rcu_assign_pointer(mas->tree->ma_root, mte_mk_root(mas->node));
3447-
return slot;
3447+
return;
34483448
}
34493449

34503450
static inline void mas_store_root(struct ma_state *mas, void *entry)

0 commit comments

Comments
 (0)