mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
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: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
e1a2f2d23a
commit
4fe7d1a8a4
1 changed files with 0 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue