]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Remove unnecessary check from mas_destroy()
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 10 Feb 2023 21:50:08 +0000 (16:50 -0500)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Thu, 27 Apr 2023 01:40:54 +0000 (21:40 -0400)
commitd316aa734b1ca7561dbd167cf6cd20e569a5d237
tree91b633dbbbca68674dd03e96f560d1441dfdcdc6
parent6f4c2a222e9c750cc7aa1c99e10bf3f10d326edf
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.

Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c