From: Christophe Jaillet Date: Tue, 13 May 2008 19:17:30 +0000 (+0200) Subject: avr32/pata: avoid unnecessary memset (updated after comments) X-Git-Tag: v2.6.26-rc4~120^2~26 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=68b90ee7c8046864301823d8d4449eb1ce1d2f74;p=linux-2.6-omap-h63xx.git avr32/pata: avoid unnecessary memset (updated after comments) Remove an explicit memset(.., 0, ...) to a variable allocated with kzalloc (i.e. 'info'). Signed-off-by: Christophe Jaillet Acked-by: Haavard Skinnemoen Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/pata_at32.c b/drivers/ata/pata_at32.c index 5e104385d6a..82fb6e27316 100644 --- a/drivers/ata/pata_at32.c +++ b/drivers/ata/pata_at32.c @@ -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;