Commit 4fe7d1a8 authored by Markus Elfring's avatar Markus Elfring Committed by Alex Deucher

drm/amd/display: Delete a redundant memory setting in amdgpu_dm_irq_register_interrupt()

The memory was set to zero already by a call of the function “kzalloc”.
Thus remove an extra call of the function “memset” for this purpose.

This issue was detected by using the Coccinelle software.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e1a2f2d2
...@@ -279,8 +279,6 @@ void *amdgpu_dm_irq_register_interrupt(struct amdgpu_device *adev, ...@@ -279,8 +279,6 @@ void *amdgpu_dm_irq_register_interrupt(struct amdgpu_device *adev,
return DAL_INVALID_IRQ_HANDLER_IDX; return DAL_INVALID_IRQ_HANDLER_IDX;
} }
memset(handler_data, 0, sizeof(*handler_data));
init_handler_common_data(handler_data, ih, handler_args, &adev->dm); init_handler_common_data(handler_data, ih, handler_args, &adev->dm);
irq_source = int_params->irq_source; irq_source = int_params->irq_source;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment