net: moxa: Use net_device_stats from struct net_device
Instead of using a private copy of struct net_device_stats in struct moxart_mac_priv_t, use stats from struct net_device. Also remove the now unnecessary .ndo_get_stats function. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
5f1d3a5c5e
commit
8bf66b9d79
@@ -293,7 +293,6 @@
|
||||
|
||||
struct moxart_mac_priv_t {
|
||||
void __iomem *base;
|
||||
struct net_device_stats stats;
|
||||
unsigned int reg_maccr;
|
||||
unsigned int reg_imr;
|
||||
struct napi_struct napi;
|
||||
|
Reference in New Issue
Block a user