Skip to contentSkip to conversation

gpu: amd: Remove call to memset after kzalloc

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

Subsystems (3)

v1 of 3 Applied Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 14/87 gpu: amd: Remove call to memset after kzalloc

kzalloc already zerored the memory.
so memset is unneeded.

---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c +0 -2
index fd22b4474dbf..4e6da61d1a93 100644
@@ -279,8 +279,6 @@ void *amdgpu_dm_irq_register_interrupt(struct amdgpu_device *adev,
 		return DAL_INVALID_IRQ_HANDLER_IDX;
 	}
 
-	memset(handler_data, 0, sizeof(*handler_data));
-
 	init_handler_common_data(handler_data, ih, handler_args, &adev->dm);
 
 	irq_source = int_params->irq_source;
Signature · 1 line
2.11.0