aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/test_maple_tree.c
diff options
context:
space:
mode:
authorLiam R. Howlett <Liam.Howlett@oracle.com>2023-05-18 10:55:29 -0400
committerAndrew Morton <akpm@linux-foundation.org>2023-06-09 16:25:32 -0700
commit23e734ecd97fb0dec1537960040e7ef0d5ef7ae6 (patch)
tree69c326b73f9defc06ded7a4f759c3dc58bb64473 /lib/test_maple_tree.c
parentmaple_tree: add __init and __exit to test module (diff)
downloadwireguard-linux-23e734ecd97fb0dec1537960040e7ef0d5ef7ae6.tar.xz
wireguard-linux-23e734ecd97fb0dec1537960040e7ef0d5ef7ae6.zip
maple_tree: remove unnecessary check from mas_destroy()
mas_destroy currently checks if mas->node is MAS_START prior to calling mas_start(), but this is unnecessary as mas_start() will do nothing if the node is anything but MAS_START. Link: https://lkml.kernel.org/r/20230518145544.1722059-21-Liam.Howlett@oracle.com Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> Reviewed-by: Peng Zhang <zhangpeng.00@bytedance.com> Cc: David Binderman <dcb314@hotmail.com> Cc: Sergey Senozhatsky <senozhatsky@chromium.org> Cc: Vernon Yang <vernon2gm@gmail.com> Cc: Wei Yang <richard.weiyang@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/test_maple_tree.c')
0 files changed, 0 insertions, 0 deletions