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:
1789a64
)
greth: Remove unnecessary memset of napi member in netdev private data
author
Tobias Klauser
<
[email protected]
>
Thu, 3 Jun 2010 20:24:21 +0000
(20:24 +0000)
committer
David S. Miller
<
[email protected]
>
Mon, 7 Jun 2010 08:08:11 +0000
(
01:08
-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 the napi member to 0 explicitely.
Signed-off-by: Tobias Klauser <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/greth.c
patch
|
blob
|
history
diff --git
a/drivers/net/greth.c
b/drivers/net/greth.c
index 3a029d02c2b410405dd37c5e6b1b7e8e4ccb63c9..4d09eab3548e9d6c563ee06356d6b951ee5adb8c 100644
(file)
--- a/
drivers/net/greth.c
+++ b/
drivers/net/greth.c
@@
-1555,7
+1555,6
@@
static int __devinit greth_of_probe(struct of_device *ofdev, const struct of_dev
}
/* setup NAPI */
- memset(&greth->napi, 0, sizeof(greth->napi));
netif_napi_add(dev, &greth->napi, greth_poll, 64);
return 0;