mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 06:49:29 -04:00
[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>
This commit is contained in:
committed by
Jeff Garzik
parent
0c49919a47
commit
178f171da7
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user