Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Liam R. Howlett and committed by
Andrew Morton
448ec8c0 3578d61c

-11
-11
lib/maple_tree.c
··· 3294 3294 mas->offset = mast->l->offset; 3295 3295 mas_wmb_replace(mas, old_enode, new_height); 3296 3296 mtree_range_walk(mas); 3297 - return; 3298 3297 } 3299 3298 3300 3299 /* ··· 3717 3718 mas->node = l_mas.node; 3718 3719 mas_wmb_replace(mas, old, height); 3719 3720 mtree_range_walk(mas); 3720 - return; 3721 3721 } 3722 3722 3723 3723 /* ··· 3777 3779 ma_set_meta(node, maple_leaf_64, 0, slot); 3778 3780 /* swap the new root into the tree */ 3779 3781 rcu_assign_pointer(mas->tree->ma_root, mte_mk_root(mas->node)); 3780 - return; 3781 3782 } 3782 3783 3783 3784 /* ··· 4048 4051 done: 4049 4052 if (xa_is_node(root)) 4050 4053 mte_destroy_walk(root, mas->tree); 4051 - 4052 - return; 4053 4054 } 4054 4055 /* 4055 4056 * mas_wr_spanning_store() - Create a subtree with the store operation completed ··· 4210 4215 trace_ma_write(TP_FCT, mas, 0, wr_mas->entry); 4211 4216 mas_update_gap(mas); 4212 4217 mas->end = new_end; 4213 - return; 4214 4218 } 4215 4219 4216 4220 /* ··· 4257 4263 */ 4258 4264 if (!wr_mas->entry || gap) 4259 4265 mas_update_gap(mas); 4260 - 4261 - return; 4262 4266 } 4263 4267 4264 4268 static inline void mas_wr_extend_null(struct ma_wr_state *wr_mas) ··· 4370 4378 4371 4379 mas->end = new_end; 4372 4380 trace_ma_write(TP_FCT, mas, new_end, wr_mas->entry); 4373 - return; 4374 4381 } 4375 4382 4376 4383 /* ··· 4428 4437 case wr_invalid: 4429 4438 MT_BUG_ON(mas->tree, 1); 4430 4439 } 4431 - 4432 - return; 4433 4440 } 4434 4441 4435 4442 static inline void mas_wr_prealloc_setup(struct ma_wr_state *wr_mas)