mempolicy: clean up minor dead code in queue_pages_test_walk()
authorLukas Bulwahn <lukas.bulwahn@gmail.com>
Mon, 22 Jan 2024 09:25:04 +0000 (10:25 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 22 Feb 2024 18:24:39 +0000 (10:24 -0800)
commit3efbe13e361acfd163fd1a2466e4fb9bed7dc1b0
tree44aa077f20403acfe1d408f97a1bd0b5a366a03e
parent8689d750006bbd811423dd41ed5efcd8a029862c
mempolicy: clean up minor dead code in queue_pages_test_walk()

Commit 2cafb582173f ("mempolicy: remove confusing MPOL_MF_LAZY dead code")
removes MPOL_MF_LAZY handling in queue_pages_test_walk(), and with that,
there is no effective use of the local variable endvma in that function
remaining.

Remove the local variable endvma and its dead code. No functional change.

This issue was identified with clang-analyzer's dead stores analysis.

Link: https://lkml.kernel.org/r/20240122092504.18377-1-lukas.bulwahn@gmail.com
Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mempolicy.c