drm/amdgpu: cleanup amdgpu_vm_validate_pt_bos v2
authorChristian König <[email protected]>
Thu, 19 Apr 2018 09:02:54 +0000 (11:02 +0200)
committerAlex Deucher <[email protected]>
Thu, 24 May 2018 15:07:53 +0000 (10:07 -0500)
commit91ccdd24a1955dbec97a6d61322be214b7de1974
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 <[email protected]>
Reviewed-by: Chunming Zhou <[email protected]>
Reviewed-by: Junwei Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c