Commit a06d4d67 authored by Tobias Klauser's avatar Tobias Klauser Committed by David S. Miller

net: hip04: Omit private ndo_get_stats function

hip04_get_stats() just returns dev->stats so we can leave it
out altogether and let dev_get_stats() do the job.
Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6f2e3f7d
...@@ -701,11 +701,6 @@ static void hip04_tx_timeout_task(struct work_struct *work) ...@@ -701,11 +701,6 @@ static void hip04_tx_timeout_task(struct work_struct *work)
hip04_mac_open(priv->ndev); hip04_mac_open(priv->ndev);
} }
static struct net_device_stats *hip04_get_stats(struct net_device *ndev)
{
return &ndev->stats;
}
static int hip04_get_coalesce(struct net_device *netdev, static int hip04_get_coalesce(struct net_device *netdev,
struct ethtool_coalesce *ec) struct ethtool_coalesce *ec)
{ {
...@@ -764,7 +759,6 @@ static const struct ethtool_ops hip04_ethtool_ops = { ...@@ -764,7 +759,6 @@ static const struct ethtool_ops hip04_ethtool_ops = {
static const struct net_device_ops hip04_netdev_ops = { static const struct net_device_ops hip04_netdev_ops = {
.ndo_open = hip04_mac_open, .ndo_open = hip04_mac_open,
.ndo_stop = hip04_mac_stop, .ndo_stop = hip04_mac_stop,
.ndo_get_stats = hip04_get_stats,
.ndo_start_xmit = hip04_mac_start_xmit, .ndo_start_xmit = hip04_mac_start_xmit,
.ndo_set_mac_address = hip04_set_mac_address, .ndo_set_mac_address = hip04_set_mac_address,
.ndo_tx_timeout = hip04_timeout, .ndo_tx_timeout = hip04_timeout,
......
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