From: Stefan Richter Date: Mon, 7 Jun 2010 22:20:10 +0000 (+0200) Subject: firewire: core: remove an unnecessary zero initialization X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=56d04cb189f955e5167c27944d61aa57ad69b598;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 --- diff --git a/drivers/firewire/core-cdev.c b/drivers/firewire/core-cdev.c index 32a33da6499..ca72cdaa68c 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;