avr32/pata: avoid unnecessary memset (updated after comments)
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Tue, 13 May 2008 19:17:30 +0000 (21:17 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 19 May 2008 21:27:40 +0000 (17:27 -0400)
Remove an explicit memset(.., 0, ...) to a variable allocated with
kzalloc (i.e. 'info').

Signed-off-by: Christophe Jaillet <christophe.jaillet@wanadoo.fr>
Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/pata_at32.c

index 5e10438..82fb6e2 100644 (file)
@@ -291,8 +291,6 @@ static int __init pata_at32_probe(struct platform_device *pdev)
        if (!info)
                return -ENOMEM;
 
-       memset(info, 0, sizeof(struct at32_ide_info));
-
        info->irq = irq;
        info->cs  = board->cs;