drm/amdgpu: cleanup amdgpu_vm_validate_pt_bos v2
commit91ccdd24a1955dbec97a6d61322be214b7de1974
authorChristian König <christian.koenig@amd.com>
Thu, 19 Apr 2018 09:02:54 +0000 (19 11:02 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 24 May 2018 15:07:53 +0000 (24 10:07 -0500)
tree1786a08921d5a8db4e4a32836a59dbcda17422de
parentaf4c0f650b563c7b30c1d8cd2bb926247ceb19cc
drm/amdgpu: cleanup amdgpu_vm_validate_pt_bos v2

Use list_for_each_entry_safe here.

v2: Drop the optimization, it doesn't work as expected.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c