maple_tree: remove extra return statement
authorVernon Yang <vernon2gm@gmail.com>
Wed, 21 Dec 2022 06:00:53 +0000 (14:00 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 19 Jan 2023 01:12:46 +0000 (17:12 -0800)
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>
lib/maple_tree.c

index 975358b..fc70ae9 100644 (file)
@@ -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;
 }
 
 /*