Commit 6abc2376 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

ethoc: get rid of ethoc_stats()

drivers can avoid implementing ndo_get_stats method if using netdevice
stats structure.
Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b4ddf4b3
...@@ -806,11 +806,6 @@ static void ethoc_tx_timeout(struct net_device *dev) ...@@ -806,11 +806,6 @@ static void ethoc_tx_timeout(struct net_device *dev)
ethoc_interrupt(dev->irq, dev); ethoc_interrupt(dev->irq, dev);
} }
static struct net_device_stats *ethoc_stats(struct net_device *dev)
{
return &dev->stats;
}
static netdev_tx_t ethoc_start_xmit(struct sk_buff *skb, struct net_device *dev) static netdev_tx_t ethoc_start_xmit(struct sk_buff *skb, struct net_device *dev)
{ {
struct ethoc *priv = netdev_priv(dev); struct ethoc *priv = netdev_priv(dev);
...@@ -863,7 +858,6 @@ static const struct net_device_ops ethoc_netdev_ops = { ...@@ -863,7 +858,6 @@ static const struct net_device_ops ethoc_netdev_ops = {
.ndo_set_multicast_list = ethoc_set_multicast_list, .ndo_set_multicast_list = ethoc_set_multicast_list,
.ndo_change_mtu = ethoc_change_mtu, .ndo_change_mtu = ethoc_change_mtu,
.ndo_tx_timeout = ethoc_tx_timeout, .ndo_tx_timeout = ethoc_tx_timeout,
.ndo_get_stats = ethoc_stats,
.ndo_start_xmit = ethoc_start_xmit, .ndo_start_xmit = ethoc_start_xmit,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment