[PATCH] drm/amdgpu: remove redundant memset

Christian König ckoenig.leichtzumerken at gmail.com
Wed Aug 29 15:05:56 UTC 2018


Am 29.08.2018 um 17:01 schrieb Philip Yang:
> Change-Id: If94a59d3cbf2690dd2a1e2add71bc393df6a9686
> Signed-off-by: Philip Yang <Philip.Yang at amd.com>

You need to add a commit message, explaining why that can be removed.

With that done the patch is Reviewed-by: Christian König 
<christian.koenig at amd.com>.

Regards,
Christian.

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 1 -
>   1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> index 153c9be..33d9ce2 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> @@ -540,7 +540,6 @@ static int amdgpu_vm_alloc_levels(struct amdgpu_device *adev,
>   						   GFP_KERNEL | __GFP_ZERO);
>   		if (!parent->entries)
>   			return -ENOMEM;
> -		memset(parent->entries, 0 , sizeof(struct amdgpu_vm_pt));
>   	}
>   
>   	from = saddr >> shift;



More information about the amd-gfx mailing list