]> 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>
Mon, 3 Apr 2023 15:51:28 +0000 (11:51 -0400)
commit248efa33938399ace37e03ca6c33b2186b6a9a2b
treeb78b6d0a675392d7cef228f5a8d60f19908df84c
parent4b45c6ef31fb512ab32cb99fbf2196353935ee40
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