Skip to content

Commit

Permalink
[PATCH] pm3386: zero stats properly
Browse files Browse the repository at this point in the history
Zero our stats structure properly.

Signed-off-by: Lennert Buytenhek <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
  • Loading branch information
buytenh authored and jgarzik committed Dec 1, 2005
1 parent 0c49919 commit 178f171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ixp2000/pm3386.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 178f171

Please sign in to comment.