firewire: core: remove an unnecessary zero initialization
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Mon, 7 Jun 2010 22:20:10 +0000 (00:20 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 20 Jun 2010 15:06:25 +0000 (17:06 +0200)
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>
drivers/firewire/core-cdev.c

index 32a33da649910739925f900b5cad9c739a5bbaf7..ca72cdaa68c9ea1d9a4f1e8fa0626761407a0797 100644 (file)
@@ -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;