aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixp2000/pm3386.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ixp2000/pm3386.c')
-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 cf0681fb1276..df960f1710f6 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)
238 while (pm3386_port_reg_read(port, 0x500, 0x100) & 0x0001) 238 while (pm3386_port_reg_read(port, 0x500, 0x100) & 0x0001)
239 ; 239 ;
240 240
241 memset(stats, 0, sizeof(stats)); 241 memset(stats, 0, sizeof(*stats));
242 242
243 stats->rx_packets = pm3386_get_stat(port, 0x510); 243 stats->rx_packets = pm3386_get_stat(port, 0x510);
244 stats->tx_packets = pm3386_get_stat(port, 0x590); 244 stats->tx_packets = pm3386_get_stat(port, 0x590);