aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/usbnet.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-03-20 15:35:53 -0400
committerDavid S. Miller <davem@davemloft.net>2009-03-21 22:41:01 -0400
commit805aaa29fa3c5afb26cb42f440f40d3f7f5c4bdc (patch)
treed2acb9d5c6c31abd6e31455b876e6ede4db5f298 /drivers/net/usb/usbnet.c
parentc266cb4ef2ef1f1e3f46d81022939feebe8fa54d (diff)
usbnet: convert to internal net_device_stats
Default handler for net_device_stats already does same thing. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Acked-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/usbnet.c')
-rw-r--r--drivers/net/usb/usbnet.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c
index c32284ff3f54..084141692245 100644
--- a/drivers/net/usb/usbnet.c
+++ b/drivers/net/usb/usbnet.c
@@ -249,14 +249,6 @@ static int usbnet_change_mtu (struct net_device *net, int new_mtu)
249 249
250/*-------------------------------------------------------------------------*/ 250/*-------------------------------------------------------------------------*/
251 251
252static struct net_device_stats *usbnet_get_stats (struct net_device *net)
253{
254 struct usbnet *dev = netdev_priv(net);
255 return &dev->stats;
256}
257
258/*-------------------------------------------------------------------------*/
259
260/* some LK 2.4 HCDs oopsed if we freed or resubmitted urbs from 252/* some LK 2.4 HCDs oopsed if we freed or resubmitted urbs from
261 * completion callbacks. 2.5 should have fixed those bugs... 253 * completion callbacks. 2.5 should have fixed those bugs...
262 */ 254 */
@@ -1180,7 +1172,6 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
1180#endif 1172#endif
1181 1173
1182 net->change_mtu = usbnet_change_mtu; 1174 net->change_mtu = usbnet_change_mtu;
1183 net->get_stats = usbnet_get_stats;
1184 net->hard_start_xmit = usbnet_start_xmit; 1175 net->hard_start_xmit = usbnet_start_xmit;
1185 net->open = usbnet_open; 1176 net->open = usbnet_open;
1186 net->stop = usbnet_stop; 1177 net->stop = usbnet_stop;