diff options
author | 2023-05-18 10:55:29 -0400 | |
---|---|---|
committer | 2023-06-09 16:25:32 -0700 | |
commit | 23e734ecd97fb0dec1537960040e7ef0d5ef7ae6 (patch) | |
tree | 69c326b73f9defc06ded7a4f759c3dc58bb64473 /lib/test_maple_tree.c | |
parent | maple_tree: add __init and __exit to test module (diff) | |
download | wireguard-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