From: Christophe Jaillet Date: Tue, 13 May 2008 19:17:30 +0000 (+0200) Subject: avr32/pata: avoid unnecessary memset (updated after comments) X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=68b90ee7c8046864301823d8d4449eb1ce1d2f74;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 5e104385d6a3..82fb6e273169 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;