aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorHimanshu Jha <[email protected]>2017-09-11 12:37:26 +0000
committerAlex Deucher <[email protected]>2017-09-12 18:32:55 +0000
commit4a00f21db800bc64264bb6764c3d0d0878e9f4c4 (patch)
treed6600169624dfdcd057cfd107323e4352305aea7 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parentdrm/amdgpu/gfx9: properly set the hdp flush reg for Raven (diff)
downloadkernel-4a00f21db800bc64264bb6764c3d0d0878e9f4c4.tar.gz
kernel-4a00f21db800bc64264bb6764c3d0d0878e9f4c4.zip
drm/amd/powerplay: remove unnecessary call to memset
call to memset to assign 0 value immediately after allocating memory with kzalloc is unnecesaary as kzalloc allocates the memory filled with 0 value. Semantic patch used to resolve this issue: @@ expression e,e2; constant c; statement S; @@ e = kzalloc(e2, c); if(e == NULL) S - memset(e, 0, e2); Signed-off-by: Himanshu Jha <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions