commit | dcaaff4eed13c4dcc15525ff87269b3f4544345a | [log] [tgz] |
---|---|---|
author | Philip Yang <Philip.Yang@amd.com> | Wed Aug 29 10:53:23 2018 -0400 |
committer | Alex Deucher <alexander.deucher@amd.com> | Wed Aug 29 12:36:06 2018 -0500 |
tree | 708808edda144f006c3255acbf5594351b11ba4c | |
parent | 25eef4214a43513c9166d8a99470b3a4d2220976 [diff] |
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>