Skip to content

Commit

Permalink
firewire: core: remove an unnecessary zero initialization
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stefan Richter committed Jun 20, 2010
1 parent ae86e81 commit 56d04cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/firewire/core-cdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ static void iso_callback(struct fw_iso_context *context, u32 cycle,
struct client *client = data;
struct iso_interrupt_event *e;

e = kzalloc(sizeof(*e) + header_length, GFP_ATOMIC);
e = kmalloc(sizeof(*e) + header_length, GFP_ATOMIC);
if (e == NULL)
return;

Expand Down

0 comments on commit 56d04cb

Please sign in to comment.