summaryrefslogtreecommitdiff
path: root/drivers/staging/wlan-ng/p80211netdev.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-07-08 08:37:00 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-09 11:59:51 -0700
commit9630f6b97a5918c7a14803954ae2ff5ff3f9fb3c (patch)
tree83f36275bf423ebd9f7e4e2747dbd6961087c5aa /drivers/staging/wlan-ng/p80211netdev.h
parentcd687a4073d58b5763ed085b942302714f0fa73d (diff)
staging: wlan-ng: Use net_device_stats from struct net_device
Instead of using an own copy of struct net_device_stats in struct wlandevice, use stats from struct net_device. Also remove the thus unnecessary .ndo_get_stats function, as it would now just return netdev->stats, which is the default in dev_get_stats(). Furthermore, convert prefix increment of stats counters to the more common postfix increment idiom. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wlan-ng/p80211netdev.h')
-rw-r--r--drivers/staging/wlan-ng/p80211netdev.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/wlan-ng/p80211netdev.h b/drivers/staging/wlan-ng/p80211netdev.h
index 2e0bd24f997c..69a4f59c8312 100644
--- a/drivers/staging/wlan-ng/p80211netdev.h
+++ b/drivers/staging/wlan-ng/p80211netdev.h
@@ -209,7 +209,6 @@ typedef struct wlandevice {
/* queue for indications waiting for cmd completion */
/* Linux netdevice and support */
netdevice_t *netdev; /* ptr to linux netdevice */
- struct net_device_stats linux_stats;
/* Rx bottom half */
struct tasklet_struct rx_bh;