[PATCH] drm/amdgpu: fix duplicated code

Jerry Zhang Jerry.Zhang at amd.com
Tue Mar 21 02:34:07 UTC 2017


On 03/21/2017 10:10 AM, Chunming Zhou wrote:
> it could come from branch merge.
>
> Change-Id: I16959aad6ca6d64cb8330f23ee6472eec4cf2a3e
> Signed-off-by: Chunming Zhou <David1.Zhou at amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang at amd.com>
> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 ----
>   1 file changed, 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> index 81c3c75..dd7df45 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> @@ -990,10 +990,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;
>


More information about the amd-gfx mailing list