Skip to contentSkip to conversation

remove explicit memset to memory allocated withk[zc]alloc

PATCH In review Christophe Jaillet 1 participant 1 message Dec 18, 2007 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 remove explicit memset to memory allocated withk[zc]alloc

Remove an explicit memset(.., 0, ...) to a varialable allocated with kzalloc.

---

--- linux-2.6.24-rc5/drivers/ata/pata_at32.c 2007-12-16 11:15:36.000000000 +0100
+++ linux-2.6.24-rc5/drivers/ata/pata_at32.c.cj 2007-12-17 21:59:24.000000000 +0100
@@ -329,8 +329,6 @@ static int __init pata_at32_probe(struct
if (!info)
return -ENOMEM;

- memset(info, 0, sizeof(struct at32_ide_info));
-
info->irq = irq;
info->cs = board->cs;