mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
drm/amdgpu/vce1: Remove superfluous address check
The same thing is already checked a few lines above. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
e729ae5f3a
commit
c1dc555e76
|
|
@ -557,8 +557,6 @@ static int vce_v1_0_ensure_vcpu_bo_32bit_addr(struct amdgpu_device *adev)
|
|||
amdgpu_gart_map_vram_range(adev, pa, adev->vce.gart_node.start,
|
||||
num_pages, flags, adev->gart.ptr);
|
||||
adev->vce.gpu_addr = adev->gmc.gart_start + vce_gart_start_offs;
|
||||
if (adev->vce.gpu_addr > max_vcpu_bo_addr)
|
||||
return -EINVAL;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user