diff options
author | stephen hemminger <stephen@networkplumber.org> | 2017-01-06 22:12:52 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-08 17:51:44 -0500 |
commit | bc1f44709cf27fb2a5766cadafe7e2ad5e9cb221 (patch) | |
tree | 10f4199c962083956bb3f2928e144b20be23ffe7 /drivers/net/ethernet/alacritech/slicoss.c | |
parent | 63c64de7be1f762b8c6c224f2994cf5769b542ae (diff) |
net: make ndo_get_stats64 a void function
The network device operation for reading statistics is only called
in one place, and it ignores the return value. Having a structure
return value is potentially confusing because some future driver could
incorrectly assume that the return value was used.
Fix all drivers with ndo_get_stats64 to have a void function.
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/alacritech/slicoss.c')
-rw-r--r-- | drivers/net/ethernet/alacritech/slicoss.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/ethernet/alacritech/slicoss.c b/drivers/net/ethernet/alacritech/slicoss.c index b21d8aa8d653..15a8096c60df 100644 --- a/drivers/net/ethernet/alacritech/slicoss.c +++ b/drivers/net/ethernet/alacritech/slicoss.c | |||
@@ -1471,8 +1471,8 @@ drop_skb: | |||
1471 | return NETDEV_TX_OK; | 1471 | return NETDEV_TX_OK; |
1472 | } | 1472 | } |
1473 | 1473 | ||
1474 | static struct rtnl_link_stats64 *slic_get_stats(struct net_device *dev, | 1474 | static void slic_get_stats(struct net_device *dev, |
1475 | struct rtnl_link_stats64 *lst) | 1475 | struct rtnl_link_stats64 *lst) |
1476 | { | 1476 | { |
1477 | struct slic_device *sdev = netdev_priv(dev); | 1477 | struct slic_device *sdev = netdev_priv(dev); |
1478 | struct slic_stats *stats = &sdev->stats; | 1478 | struct slic_stats *stats = &sdev->stats; |
@@ -1489,8 +1489,6 @@ static struct rtnl_link_stats64 *slic_get_stats(struct net_device *dev, | |||
1489 | SLIC_GET_STATS_COUNTER(lst->rx_crc_errors, stats, rx_crc); | 1489 | SLIC_GET_STATS_COUNTER(lst->rx_crc_errors, stats, rx_crc); |
1490 | SLIC_GET_STATS_COUNTER(lst->rx_fifo_errors, stats, rx_oflow802); | 1490 | SLIC_GET_STATS_COUNTER(lst->rx_fifo_errors, stats, rx_oflow802); |
1491 | SLIC_GET_STATS_COUNTER(lst->tx_carrier_errors, stats, tx_carrier); | 1491 | SLIC_GET_STATS_COUNTER(lst->tx_carrier_errors, stats, tx_carrier); |
1492 | |||
1493 | return lst; | ||
1494 | } | 1492 | } |
1495 | 1493 | ||
1496 | static int slic_get_sset_count(struct net_device *dev, int sset) | 1494 | static int slic_get_sset_count(struct net_device *dev, int sset) |