summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2005-11-23 12:49:10 +0100
committerJeff Garzik <jgarzik@pobox.com>2005-12-01 02:25:25 -0500
commit178f171da7f0ea5cfc1c45932680c81b3a8a0bd6 (patch)
tree917fb452574c90838fb3042c39069819bbde4494 /drivers/net
parent0c49919a4706cc8c72ff381da7f3ae094e6df03a (diff)
downloadlinux-3.10-178f171da7f0ea5cfc1c45932680c81b3a8a0bd6.tar.gz
linux-3.10-178f171da7f0ea5cfc1c45932680c81b3a8a0bd6.tar.bz2
linux-3.10-178f171da7f0ea5cfc1c45932680c81b3a8a0bd6.zip
[PATCH] pm3386: zero stats properly
Zero our stats structure properly. Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ixp2000/pm3386.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ixp2000/pm3386.c b/drivers/net/ixp2000/pm3386.c
index cf0681fb127..df960f1710f 100644
--- a/drivers/net/ixp2000/pm3386.c
+++ b/drivers/net/ixp2000/pm3386.c
@@ -238,7 +238,7 @@ void pm3386_get_stats(int port, struct net_device_stats *stats)
while (pm3386_port_reg_read(port, 0x500, 0x100) & 0x0001)
;
- memset(stats, 0, sizeof(stats));
+ memset(stats, 0, sizeof(*stats));
stats->rx_packets = pm3386_get_stat(port, 0x510);
stats->tx_packets = pm3386_get_stat(port, 0x590);