mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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:
parent
b6e7b44797
commit
68b90ee7c8
1 changed files with 0 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue