summaryrefslogtreecommitdiffstats
path: root/drivers/net/3c523.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2010-05-06 07:39:46 +0200
committerDavid S. Miller <davem@davemloft.net>2010-05-07 07:10:36 +0200
commit468003f571b73588482ba058194e73d0689b94e6 (patch)
tree08c11216dfece5e46a3289fc09c578f538652f20 /drivers/net/3c523.c
parent3c507: Remove unnecessary memset of netdev private data (diff)
downloadlinux-468003f571b73588482ba058194e73d0689b94e6.tar.xz
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,