summaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_at32.c
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 23:27:40 +0200
commit68b90ee7c8046864301823d8d4449eb1ce1d2f74 (patch)
tree73d078a7d5ecd8ab69cbf097d07aa8c0d9a8c1cd /drivers/ata/pata_at32.c
parentpata-bf54x: Set ATAPI HSM to control IDE device terminate sequence. (diff)
downloadlinux-68b90ee7c8046864301823d8d4449eb1ce1d2f74.tar.xz
linux-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>
Diffstat (limited to '')
-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;