diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2010-05-06 01:39:46 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-07 01:10:36 -0400 |
commit | 468003f571b73588482ba058194e73d0689b94e6 (patch) | |
tree | 08c11216dfece5e46a3289fc09c578f538652f20 /drivers/net/3c523.c | |
parent | 91991146bc2bbc07a0f6b5252ff991bd0e91fb7d (diff) |
3c523: Remove unnecessary memset of netdev private data
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 <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/3c523.c')
-rw-r--r-- | drivers/net/3c523.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/3c523.c b/drivers/net/3c523.c index 8c70686d43a1..55d219e585fb 100644 --- a/drivers/net/3c523.c +++ b/drivers/net/3c523.c | |||
@@ -503,7 +503,6 @@ static int __init do_elmc_probe(struct net_device *dev) | |||
503 | break; | 503 | break; |
504 | } | 504 | } |
505 | 505 | ||
506 | memset(pr, 0, sizeof(struct priv)); | ||
507 | pr->slot = slot; | 506 | pr->slot = slot; |
508 | 507 | ||
509 | pr_info("%s: 3Com 3c523 Rev 0x%x at %#lx\n", dev->name, (int) revision, | 508 | pr_info("%s: 3Com 3c523 Rev 0x%x at %#lx\n", dev->name, (int) revision, |