summaryrefslogtreecommitdiff
path: root/lib/maple_tree.c
diff options
context:
space:
mode:
authorVernon Yang <vernon2gm@gmail.com>2022-12-21 14:00:53 +0800
committerAndrew Morton <akpm@linux-foundation.org>2023-01-18 17:12:46 -0800
commitd56c593c8e128c42dc81707c07cbd5af41862214 (patch)
tree3c855fe03ae3b78a82864bd7491383dd7dd85b10 /lib/maple_tree.c
parent831978e37e93bd3e36612917a4b193278950daff (diff)
downloadlwn-d56c593c8e128c42dc81707c07cbd5af41862214.tar.gz
lwn-d56c593c8e128c42dc81707c07cbd5af41862214.zip
maple_tree: remove extra return statement
For functions with a return type of void, it is unnecessary to add a reurn statement at the end of the function, so drop it. Link: https://lkml.kernel.org/r/20221221060058.609003-3-vernon2gm@gmail.com Signed-off-by: Vernon Yang <vernon2gm@gmail.com> Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/maple_tree.c')
-rw-r--r--lib/maple_tree.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/maple_tree.c b/lib/maple_tree.c
index 975358bec754..fc70ae9850b1 100644
--- a/lib/maple_tree.c
+++ b/lib/maple_tree.c
@@ -1276,7 +1276,6 @@ nomem_one:
if (mas->alloc && !(((unsigned long)mas->alloc & 0x1)))
mas->alloc->total = success;
mas_set_err(mas, -ENOMEM);
- return;
}
/*
@@ -4712,8 +4711,6 @@ retry:
mas_state_walk(mas);
if (mas_is_start(mas))
goto retry;
-
- return;
}
/*