projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
627ad59
)
sunhme: Remove unnecessary memset of netdev private data
author
Tobias Klauser
<
[email protected]
>
Thu, 6 May 2010 05:41:44 +0000
(
05:41
+0000)
committer
David S. Miller
<
[email protected]
>
Fri, 7 May 2010 05:10:40 +0000
(22:10 -0700)
The memory for the private data is allocated using kzalloc in
alloc_etherdev (or alloc_netdev_mq respectively) so there is no need to
set it to 0 again.
Signed-off-by: Tobias Klauser <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/sunhme.c
patch
|
blob
|
history
diff --git
a/drivers/net/sunhme.c
b/drivers/net/sunhme.c
index 20deb14e98ff5c993545b349278ffa1d33f8b10f..982ff12764a3f848e92e078c4cd769e1d53fab88 100644
(file)
--- a/
drivers/net/sunhme.c
+++ b/
drivers/net/sunhme.c
@@
-3004,7
+3004,6
@@
static int __devinit happy_meal_pci_probe(struct pci_dev *pdev,
dev->base_addr = (long) pdev;
hp = netdev_priv(dev);
- memset(hp, 0, sizeof(*hp));
hp->happy_dev = pdev;
hp->dma_dev = &pdev->dev;