Skip to content

Commit

Permalink
avr32/pata: avoid unnecessary memset (updated after comments)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
tititiou36 authored and Jeff Garzik committed May 19, 2008
1 parent b6e7b44 commit 68b90ee
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/ata/pata_at32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 68b90ee

Please sign in to comment.