linux-stable/drivers/gpu/drm/amd
Himanshu Jha 4a00f21db8 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 <himanshujha199640@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2017-09-12 14:32:55 -04:00
..
acp drm: amd: remove broken include path 2017-03-14 19:19:44 -04:00
amdgpu drm/amdgpu/gfx9: properly set the hdp flush reg for Raven 2017-09-12 14:32:43 -04:00
amdkfd drm/amdkfd: Implement image tiling mode support v2 2017-08-15 23:00:22 -04:00
include drm/amd/powerplay: Introduction of bitmask macros for registers 2017-09-12 14:31:02 -04:00
powerplay drm/amd/powerplay: remove unnecessary call to memset 2017-09-12 14:32:55 -04:00
scheduler drm/amdgpu: discard commands of killed processes 2017-08-29 15:27:42 -04:00