Commit 56d04cb189f955e5167c27944d61aa57ad69b598

Authored by Stefan Richter
1 parent ae86e81e43

firewire: core: remove an unnecessary zero initialization

All of the fields of the iso_interrupt_event instance are overwritten
right after it was allocated.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/firewire/core-cdev.c
... ... @@ -847,7 +847,7 @@
847 847 struct client *client = data;
848 848 struct iso_interrupt_event *e;
849 849  
850   - e = kzalloc(sizeof(*e) + header_length, GFP_ATOMIC);
  850 + e = kmalloc(sizeof(*e) + header_length, GFP_ATOMIC);
851 851 if (e == NULL)
852 852 return;
853 853