Skip to content
Snippets Groups Projects
Commit 736bc924 authored by Paulius Zaleckas's avatar Paulius Zaleckas Committed by John W. Linville
Browse files

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: default avatarPaulius Zaleckas <paulius.zaleckas@teltonika.lt>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 06a5223d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment