diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-08-24 15:23:01 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-24 15:23:01 -0400 |
commit | 6abc2376809497b04feee554240e158ac2072587 (patch) | |
tree | 59781d1b1e4b57c8814ede8dd74bb77e899ee3b7 /drivers/net/ethoc.c | |
parent | b4ddf4b3331f0f2195bd0ab5e8b50080ba93af87 (diff) |
ethoc: get rid of ethoc_stats()
drivers can avoid implementing ndo_get_stats method if using netdevice
stats structure.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethoc.c')
-rw-r--r-- | drivers/net/ethoc.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c index 6d653c459c1f..c5a2fe099a8d 100644 --- a/drivers/net/ethoc.c +++ b/drivers/net/ethoc.c | |||
@@ -806,11 +806,6 @@ static void ethoc_tx_timeout(struct net_device *dev) | |||
806 | ethoc_interrupt(dev->irq, dev); | 806 | ethoc_interrupt(dev->irq, dev); |
807 | } | 807 | } |
808 | 808 | ||
809 | static struct net_device_stats *ethoc_stats(struct net_device *dev) | ||
810 | { | ||
811 | return &dev->stats; | ||
812 | } | ||
813 | |||
814 | static netdev_tx_t ethoc_start_xmit(struct sk_buff *skb, struct net_device *dev) | 809 | static netdev_tx_t ethoc_start_xmit(struct sk_buff *skb, struct net_device *dev) |
815 | { | 810 | { |
816 | struct ethoc *priv = netdev_priv(dev); | 811 | struct ethoc *priv = netdev_priv(dev); |
@@ -863,7 +858,6 @@ static const struct net_device_ops ethoc_netdev_ops = { | |||
863 | .ndo_set_multicast_list = ethoc_set_multicast_list, | 858 | .ndo_set_multicast_list = ethoc_set_multicast_list, |
864 | .ndo_change_mtu = ethoc_change_mtu, | 859 | .ndo_change_mtu = ethoc_change_mtu, |
865 | .ndo_tx_timeout = ethoc_tx_timeout, | 860 | .ndo_tx_timeout = ethoc_tx_timeout, |
866 | .ndo_get_stats = ethoc_stats, | ||
867 | .ndo_start_xmit = ethoc_start_xmit, | 861 | .ndo_start_xmit = ethoc_start_xmit, |
868 | }; | 862 | }; |
869 | 863 | ||