Skip to contentSkip to conversation

gpu: drm: Remove call to memset after kzalloc

PATCH Applied Fuqian Huang 1 participant 1 message Jun 27, 2019

Subsystems (2)

v1 of 3 Applied Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 16/87 gpu: drm: Remove call to memset after kzalloc

kzalloc has already zeroes the memory.
So memset is unneeded.

---
 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c +0 -2
index 669bd0c2a16c..d55e264c5df5 100644
@@ -2702,8 +2702,6 @@ static int ci_initialize_mc_reg_table(struct pp_hwmgr *hwmgr)
 	cgs_write_register(hwmgr->device, mmMC_SEQ_PMG_CMD_MRS2_LP, cgs_read_register(hwmgr->device, mmMC_PMG_CMD_MRS2));
 	cgs_write_register(hwmgr->device, mmMC_SEQ_WR_CTL_2_LP, cgs_read_register(hwmgr->device, mmMC_SEQ_WR_CTL_2));
 
-	memset(table, 0x00, sizeof(pp_atomctrl_mc_reg_table));
-
 	result = atomctrl_initialize_mc_reg_table(hwmgr, module_index, table);
 
 	if (0 == result)
Signature · 1 line
2.11.0