projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6e7b44
)
avr32/pata: avoid unnecessary memset (updated after comments)
author
Christophe Jaillet
<christophe.jaillet@wanadoo.fr>
Tue, 13 May 2008 19:17:30 +0000
(21:17 +0200)
committer
Jeff Garzik
<jgarzik@redhat.com>
Mon, 19 May 2008 21:27:40 +0000
(17:27 -0400)
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>
drivers/ata/pata_at32.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ata/pata_at32.c
b/drivers/ata/pata_at32.c
index 5e104385d6a374336d529dad852087e19df78770..82fb6e2731690f11194fd286810c807b14795c3b 100644
(file)
--- 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;