diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2010-06-08 00:20:10 +0200 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2010-06-20 17:06:25 +0200 |
commit | 56d04cb189f955e5167c27944d61aa57ad69b598 (patch) | |
tree | 3cea2dce19e0a52c215b2a389f45ed51077a2041 /drivers/firewire | |
parent | ae86e81e434072be28ff4e9c1be3cc2562be8749 (diff) | |
download | lwn-56d04cb189f955e5167c27944d61aa57ad69b598.tar.gz lwn-56d04cb189f955e5167c27944d61aa57ad69b598.zip |
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>
Diffstat (limited to 'drivers/firewire')
-rw-r--r-- | drivers/firewire/core-cdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firewire/core-cdev.c b/drivers/firewire/core-cdev.c index 32a33da64991..ca72cdaa68c9 100644 --- a/drivers/firewire/core-cdev.c +++ b/drivers/firewire/core-cdev.c @@ -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; |