mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
maple_tree: remove unnecessary return statements
Functions do not need to state return at the end, unless skipping unwind. These can safely be dropped. Link: https://lkml.kernel.org/r/20260130205935.2559335-20-Liam.Howlett@oracle.com Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> Cc: Alice Ryhl <aliceryhl@google.com> Cc: Andrew Ballance <andrewjballance@gmail.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Christian Kujau <lists@nerdbynature.de> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: SeongJae Park <sj@kernel.org> Cc: Sidhartha Kumar <sidhartha.kumar@oracle.com> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
3578d61c1c
commit
448ec8c0a4
|
|
@ -3294,7 +3294,6 @@ static void mas_spanning_rebalance_loop(struct ma_state *mas,
|
|||
mas->offset = mast->l->offset;
|
||||
mas_wmb_replace(mas, old_enode, new_height);
|
||||
mtree_range_walk(mas);
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -3718,7 +3717,6 @@ static void mas_split(struct ma_state *mas, struct maple_big_node *b_node)
|
|||
mas->node = l_mas.node;
|
||||
mas_wmb_replace(mas, old, height);
|
||||
mtree_range_walk(mas);
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -3779,7 +3777,6 @@ static inline void mas_root_expand(struct ma_state *mas, void *entry)
|
|||
ma_set_meta(node, maple_leaf_64, 0, slot);
|
||||
/* swap the new root into the tree */
|
||||
rcu_assign_pointer(mas->tree->ma_root, mte_mk_root(mas->node));
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -4051,8 +4048,6 @@ static inline void mas_new_root(struct ma_state *mas, void *entry)
|
|||
done:
|
||||
if (xa_is_node(root))
|
||||
mte_destroy_walk(root, mas->tree);
|
||||
|
||||
return;
|
||||
}
|
||||
/*
|
||||
* mas_wr_spanning_store() - Create a subtree with the store operation completed
|
||||
|
|
@ -4215,7 +4210,6 @@ static inline void mas_wr_node_store(struct ma_wr_state *wr_mas,
|
|||
trace_ma_write(TP_FCT, mas, 0, wr_mas->entry);
|
||||
mas_update_gap(mas);
|
||||
mas->end = new_end;
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -4263,8 +4257,6 @@ static inline void mas_wr_slot_store(struct ma_wr_state *wr_mas)
|
|||
*/
|
||||
if (!wr_mas->entry || gap)
|
||||
mas_update_gap(mas);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
static inline void mas_wr_extend_null(struct ma_wr_state *wr_mas)
|
||||
|
|
@ -4378,7 +4370,6 @@ static inline void mas_wr_append(struct ma_wr_state *wr_mas,
|
|||
|
||||
mas->end = new_end;
|
||||
trace_ma_write(TP_FCT, mas, new_end, wr_mas->entry);
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -4437,8 +4428,6 @@ static inline void mas_wr_store_entry(struct ma_wr_state *wr_mas)
|
|||
case wr_invalid:
|
||||
MT_BUG_ON(mas->tree, 1);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
static inline void mas_wr_prealloc_setup(struct ma_wr_state *wr_mas)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user