summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>2008-05-13 21:17:30 +0200
committerJeff Garzik <jgarzik@redhat.com>2008-05-19 17:27:40 -0400
commit68b90ee7c8046864301823d8d4449eb1ce1d2f74 (patch)
tree73d078a7d5ecd8ab69cbf097d07aa8c0d9a8c1cd
parentb6e7b447975b0364c3430284c7b16e2e89ccf9e9 (diff)
downloadlinux-stable-68b90ee7c8046864301823d8d4449eb1ce1d2f74.tar.gz
linux-stable-68b90ee7c8046864301823d8d4449eb1ce1d2f74.tar.bz2
linux-stable-68b90ee7c8046864301823d8d4449eb1ce1d2f74.zip
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 <christophe.jaillet@wanadoo.fr> Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
-rw-r--r--drivers/ata/pata_at32.c2
1 files changed, 0 insertions, 2 deletions
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;