Commit 68b90ee7 authored by Christophe Jaillet's avatar Christophe Jaillet Committed by Jeff Garzik

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: default avatarChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Acked-by: default avatarHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent b6e7b447
...@@ -291,8 +291,6 @@ static int __init pata_at32_probe(struct platform_device *pdev) ...@@ -291,8 +291,6 @@ static int __init pata_at32_probe(struct platform_device *pdev)
if (!info) if (!info)
return -ENOMEM; return -ENOMEM;
memset(info, 0, sizeof(struct at32_ide_info));
info->irq = irq; info->irq = irq;
info->cs = board->cs; info->cs = board->cs;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment