drm/amdgpu: remove unused code
authorJesse Zhang <jesse.zhang@amd.com>
Tue, 5 Mar 2024 02:22:57 +0000 (10:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Mar 2024 20:24:24 +0000 (15:24 -0500)
commitbb8863cc9d067c44e751579881048dca0403133c
tree357b6e1bf8a7479984c715f3c0d5bb8e596f75e6
parent8bc75586ea01f1c645063d3472c115ecab03e76c
drm/amdgpu: remove unused code

Remove the unused function - amdgpu_vm_pt_is_root_clean
and remove the impossible condition

v1: entries == 0 is not possible any more,
    so this condition could probably be removed (Felix)

Signed-off-by: Jesse Zhang <jesse.zhang@amd.com>
Suggested-by:Felix Kuehling <felix.kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c