diff options
author | Liam Howlett <liam.howlett@oracle.com> | 2022-10-26 15:14:31 +0000 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-11-08 15:57:22 -0800 |
commit | 9a887877ef981e5a185a84339603300cf2eb1900 (patch) | |
tree | d4811be68ebb074b6dccd510f2fa41c7e4a57d53 /virt/kvm | |
parent | c61b3a2b2d9bb36698f8c2f65aa41ba183815264 (diff) | |
download | linux-stable-9a887877ef981e5a185a84339603300cf2eb1900.tar.gz linux-stable-9a887877ef981e5a185a84339603300cf2eb1900.tar.bz2 linux-stable-9a887877ef981e5a185a84339603300cf2eb1900.zip |
maple_tree: mas_anode_descend() clang-analyzer cleanup
clang-analyzer reported some Dead Stores in mas_anode_descend(). Upon
inspection, there were a few clean ups that would make the code cleaner:
The count variable was set from the mt_slots array and then updated but
never used again. Just use the array reference directly.
Also stop updating the type since it isn't used after the update.
Stop setting the gaps pointer to NULL at the start since it is always
set before the loop begins.
Link: https://lkml.kernel.org/r/20221026151413.4032730-1-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Suggested-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions