summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/moxa/moxart_ether.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-04-07 10:17:31 +0200
committerDavid S. Miller <davem@davemloft.net>2017-04-07 07:03:33 -0700
commit8bf66b9d791d2de7ed43d34097ea6c2669e923d9 (patch)
tree01299f934df50367042e245f1f92a420aa46e557 /drivers/net/ethernet/moxa/moxart_ether.h
parent5f1d3a5c5ec3e020c1babbeb9d0f435fdf13bc39 (diff)
downloadlinux-8bf66b9d791d2de7ed43d34097ea6c2669e923d9.tar.bz2
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>
Diffstat (limited to 'drivers/net/ethernet/moxa/moxart_ether.h')
-rw-r--r--drivers/net/ethernet/moxa/moxart_ether.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/moxa/moxart_ether.h b/drivers/net/ethernet/moxa/moxart_ether.h
index afc32ec998c0..686b8957d5cf 100644
--- a/drivers/net/ethernet/moxa/moxart_ether.h
+++ b/drivers/net/ethernet/moxa/moxart_ether.h
@@ -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;