提交 178f171d 编写于 作者: L Lennert Buytenhek 提交者: Jeff Garzik

[PATCH] pm3386: zero stats properly

Zero our stats structure properly.
Signed-off-by: NLennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
上级 0c49919a
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册