]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: remove redundant memset
authorPhilip Yang <Philip.Yang@amd.com>
Wed, 29 Aug 2018 14:53:23 +0000 (10:53 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Aug 2018 17:36:06 +0000 (12:36 -0500)
commit91ca897a4d43c225954c4fbd905efb85c2a68417
tree708808edda144f006c3255acbf5594351b11ba4c
parentee129ad4f833653f91a93cae6c588d05724a7196
drm/amdgpu: remove redundant memset

kvmalloc_array uses __GFP_ZERO flag ensures that the returned address
is zeroed already, memset it to zero again afterwards is unnecessary,
and in this case buggy because we only clear the first entry.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c