summaryrefslogtreecommitdiffstats
path: root/arch/nds32/mm
diff options
context:
space:
mode:
authorRalph Campbell <rcampbell@nvidia.com>2020-08-07 08:22:21 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2020-08-07 20:33:26 +0200
commit463b7a173d52f0b15473171fe895ab3a3d852a5e (patch)
treea4e87cc9078652d106387a68a126286365331dec /arch/nds32/mm
parentmm/page_counter.c: fix protection usage propagation (diff)
downloadlinux-463b7a173d52f0b15473171fe895ab3a3d852a5e.tar.xz
linux-463b7a173d52f0b15473171fe895ab3a3d852a5e.zip
mm: remove redundant check non_swap_entry()
In zap_pte_range(), the check for non_swap_entry() and is_device_private_entry() is unnecessary since the latter is sufficient to determine if the page is a device private page. Remove the test for non_swap_entry() to simplify the code and for clarity. Signed-off-by: Ralph Campbell <rcampbell@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Jason Gunthorpe <jgg@mellanox.com> Acked-by: David Hildenbrand <david@redhat.com> Link: http://lkml.kernel.org/r/20200615175405.4613-1-rcampbell@nvidia.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/nds32/mm')
0 files changed, 0 insertions, 0 deletions