linux_dsm_epyc7002/drivers/gpu/drm/amd/powerplay
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
..
hwmgr drm/amd/powerplay: remove unnecessary call to memset 2017-09-12 14:32:55 -04:00
inc drm/amd/powerplay: Add PP_CAP() macro 2017-09-12 14:31:17 -04:00
smumgr drm/amd: Remove null check before kfree 2017-08-29 15:57:32 -04:00
amd_powerplay.c drm/amd/powerplay: add UMD P-state in powerplay. 2017-09-12 14:22:23 -04:00
Makefile drm/amd/powerplay: delete eventmgr layer in poweprlay 2017-09-12 14:21:50 -04:00