summaryrefslogtreecommitdiffstats
path: root/drivers/net/3c523.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2010-05-06 05:39:46 +0000
committerDavid S. Miller <davem@davemloft.net>2010-05-06 22:10:36 -0700
commit468003f571b73588482ba058194e73d0689b94e6 (patch)
tree08c11216dfece5e46a3289fc09c578f538652f20 /drivers/net/3c523.c
parent91991146bc2bbc07a0f6b5252ff991bd0e91fb7d (diff)
downloadlinux-468003f571b73588482ba058194e73d0689b94e6.tar.gz
linux-468003f571b73588482ba058194e73d0689b94e6.tar.bz2
linux-468003f571b73588482ba058194e73d0689b94e6.zip
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.c1
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)
break;
}
- memset(pr, 0, sizeof(struct priv));
pr->slot = slot;
pr_info("%s: 3Com 3c523 Rev 0x%x at %#lx\n", dev->name, (int) revision,