]> err.no Git - linux-2.6/commit
atmel: use netstats in net_device structure
authorPaulius Zaleckas <paulius.zaleckas@teltonika.lt>
Tue, 6 May 2008 20:50:30 +0000 (23:50 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 14 May 2008 20:29:48 +0000 (16:29 -0400)
commit736bc924fe7183dd27182a9148e78f250c1637ee
treed42972d1e02486fc51546335229990129662227e
parent06a5223d68a7c48bf72a05aad533ea0e8a3453be
atmel: use netstats in net_device structure

Use net_device_stats from net_device structure instead of local.
Kill atmel_get_stats function, because by default it is used
identical internal_stats function from net/core/dev.c
No need to memset stats to 0, because they are allocated by kzalloc.

P.S. Someone should cleanup init_atmel_card function from unneeded
initializations to 0/NULL. Out of scope for this patch.

Signed-off-by: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/atmel.c