]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Fix static analyser cppcheck issue
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Mon, 17 Apr 2023 15:15:33 +0000 (11:15 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Mon, 24 Apr 2023 15:40:43 +0000 (11:40 -0400)
commit3480bfb95c3db6fb5c486b85c9984b740a51b08a
treee01868a2176843e39fa1ab580e69868153d8b245
parentd2a8de8b9c113088d45b1c066a3d109f14e41b3a
maple_tree: Fix static analyser cppcheck issue

Static analyser of the maple tree code noticed that the split variable
is being used to dereference into an array prior to checking the
variable itself.  Fix this issue by changing the order of the statement
to check the variable first.

Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c