drm/amdgpu: fix duplicated code
authorChunming Zhou <David1.Zhou@amd.com>
Tue, 21 Mar 2017 02:09:33 +0000 (10:09 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:54:07 +0000 (23:54 -0400)
it could come from branch merge.

Signed-off-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

index 1f811ef44ce7d6e562664539e91c070d0f36bca0..4fe892e3600d66f1c6c3d1e52ca701c73426f956 100644 (file)
@@ -974,10 +974,6 @@ static int amdgpu_vm_bo_update_mapping(struct amdgpu_device *adev,
 
        ring = container_of(vm->entity.sched, struct amdgpu_ring, sched);
 
-       memset(&params, 0, sizeof(params));
-       params.adev = adev;
-       params.src = src;
-
        /* sync to everything on unmapping */
        if (!(flags & AMDGPU_PTE_VALID))
                owner = AMDGPU_FENCE_OWNER_UNDEFINED;