]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: wlan-ng: Use net_device_stats from struct net_device
authorTobias Klauser <tklauser@distanz.ch>
Tue, 8 Jul 2014 06:37:00 +0000 (08:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 18:59:51 +0000 (11:59 -0700)
commit9630f6b97a5918c7a14803954ae2ff5ff3f9fb3c
tree83f36275bf423ebd9f7e4e2747dbd6961087c5aa
parentcd687a4073d58b5763ed085b942302714f0fa73d
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>
drivers/staging/wlan-ng/hfa384x_usb.c
drivers/staging/wlan-ng/p80211netdev.c
drivers/staging/wlan-ng/p80211netdev.h
drivers/staging/wlan-ng/prism2sta.c