]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
net: hip04: Omit private ndo_get_stats function
authorTobias Klauser <tklauser@distanz.ch>
Tue, 14 Feb 2017 14:10:06 +0000 (15:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Feb 2017 20:03:21 +0000 (15:03 -0500)
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: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hip04_eth.c

index 6e50ec82b3d8ebbfbe51062720c510e8e0c05b11..0cec06bec63ee1c0085019f0f1ee456b675c2ece 100644 (file)
@@ -701,11 +701,6 @@ static void hip04_tx_timeout_task(struct work_struct *work)
        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,
                              struct ethtool_coalesce *ec)
 {
@@ -764,7 +759,6 @@ static const struct ethtool_ops hip04_ethtool_ops = {
 static const struct net_device_ops hip04_netdev_ops = {
        .ndo_open               = hip04_mac_open,
        .ndo_stop               = hip04_mac_stop,
-       .ndo_get_stats          = hip04_get_stats,
        .ndo_start_xmit         = hip04_mac_start_xmit,
        .ndo_set_mac_address    = hip04_set_mac_address,
        .ndo_tx_timeout         = hip04_timeout,