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 <[email protected]>
Acked-by: Haavard Skinnemoen <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
This commit is contained in:
Christophe Jaillet 2008-05-13 21:17:30 +02:00 • committed by Jeff Garzik
commit 68b90ee7c8

View 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;