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

Signed-off-by: Fuqian Huang <[email protected]>
---
 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c 
b/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c
index 3ed6c5f1e5cf..60462c7211e3 100644
--- a/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c
+++ b/drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c
@@ -3114,8 +3114,6 @@ static int tonga_initialize_mc_reg_table(struct pp_hwmgr 
*hwmgr)
        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 (!result)
-- 
2.11.0

Reply via email to