Re: [PATCH 26/77] usbnet: convert to internal net_device_stats

Previous thread: [PATCH 21/77] usbnet: convert catc to internal net_device_stats by Stephen Hemminger on Friday, March 20, 2009 - 10:35 pm. (2 messages)

Next thread: [PATCH 40/77] xir2cps: convert to internal net_device stats by Stephen Hemminger on Friday, March 20, 2009 - 10:36 pm. (2 messages)
From: Stephen Hemminger
Date: Friday, March 20, 2009 - 10:35 pm

Default handler for net_device_stats already does same thing.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>


--- a/drivers/net/usb/usbnet.c	2009-03-20 09:38:00.950964064 -0700
+++ b/drivers/net/usb/usbnet.c	2009-03-20 09:38:46.383715245 -0700
@@ -249,14 +249,6 @@ static int usbnet_change_mtu (struct net
 
 /*-------------------------------------------------------------------------*/
 
-static struct net_device_stats *usbnet_get_stats (struct net_device *net)
-{
-	struct usbnet	*dev = netdev_priv(net);
-	return &dev->stats;
-}
-
-/*-------------------------------------------------------------------------*/
-
 /* some LK 2.4 HCDs oopsed if we freed or resubmitted urbs from
  * completion callbacks.  2.5 should have fixed those bugs...
  */
@@ -1180,7 +1172,6 @@ usbnet_probe (struct usb_interface *udev
 #endif
 
 	net->change_mtu = usbnet_change_mtu;
-	net->get_stats = usbnet_get_stats;
 	net->hard_start_xmit = usbnet_start_xmit;
 	net->open = usbnet_open;
 	net->stop = usbnet_stop;

-- 

--

From: David Brownell
Date: Saturday, March 21, 2009 - 2:09 am

From: David Miller
Date: Saturday, March 21, 2009 - 7:46 pm

From: Stephen Hemminger <shemminger@vyatta.com>

Applied.
--

Previous thread: [PATCH 21/77] usbnet: convert catc to internal net_device_stats by Stephen Hemminger on Friday, March 20, 2009 - 10:35 pm. (2 messages)

Next thread: [PATCH 40/77] xir2cps: convert to internal net_device stats by Stephen Hemminger on Friday, March 20, 2009 - 10:36 pm. (2 messages)