summaryrefslogtreecommitdiffstats
path: root/drivers/staging/octeon/octeon-ethernet.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-02-15 13:51:10 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-02-16 10:44:58 -0800
commit66812da3a689e3fea8a2e3899dd8b5f53aab2261 (patch)
tree6719c65ca8d03c0f3578c44b46401b54fc0cdd33 /drivers/staging/octeon/octeon-ethernet.h
parent548d35062bc0550166cb7d6e55d969b83cd503f7 (diff)
downloadlinux-66812da3a689e3fea8a2e3899dd8b5f53aab2261.tar.gz
linux-66812da3a689e3fea8a2e3899dd8b5f53aab2261.tar.bz2
linux-66812da3a689e3fea8a2e3899dd8b5f53aab2261.zip
staging: octeon: Use net_device_stats from struct net_device
Instead of using a private copy of struct net_device_stats in struct octeon_ethernet, 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/octeon/octeon-ethernet.h')
-rw-r--r--drivers/staging/octeon/octeon-ethernet.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/octeon/octeon-ethernet.h b/drivers/staging/octeon/octeon-ethernet.h
index 9c6852d61c0d..9c3f453adaa0 100644
--- a/drivers/staging/octeon/octeon-ethernet.h
+++ b/drivers/staging/octeon/octeon-ethernet.h
@@ -38,8 +38,6 @@ struct octeon_ethernet {
int imode;
/* List of outstanding tx buffers per queue */
struct sk_buff_head tx_free_list[16];
- /* Device statistics */
- struct net_device_stats stats;
unsigned int last_speed;
unsigned int last_link;
/* Last negotiated link state */