drm/amdgpu: remove dead code after hmm_range_fault()
authorJason Gunthorpe <jgg@mellanox.com>
Fri, 1 May 2020 18:20:46 +0000 (15:20 -0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 11 May 2020 13:47:29 +0000 (10:47 -0300)
commit4e2490843d55ffcb128ade3665c238042e36a435
tree035ac7e6b1899c664436826c568244a3ab9d8196
parentbe957c886d92aa9caf0f63aee2c77d1497217d93
drm/amdgpu: remove dead code after hmm_range_fault()

Since amdgpu does not use the snapshot mode of hmm_range_fault() a
successful return already proves that all entries in the pfns are
HMM_PFN_VALID, there is no need to check the return result of
hmm_device_entry_to_page().

Link: https://lore.kernel.org/r/3-v2-b4e84f444c7d+24f57-hmm_no_flags_jgg@mellanox.com
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c