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/[email protected] Signed-off-by: Wei Yang <[email protected]> Reviewed-by: Liam R. Howlett <[email protected]> Cc: Liam R. Howlett <[email protected]> Cc: Sidhartha Kumar <[email protected]> Cc: Lorenzo Stoakes <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 04dafdd commit cefbcf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)