remove explicit memset to memory allocated withk[zc]alloc
PATCH 1/3 remove explicit memset to memory allocated withk[zc]alloc
Remove an explicit memset(.., 0, ...) to a varialable allocated with kzalloc.
Signed-off-by Christophe Jaillet <[email protected]>
---
--- 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;