diff options
author | Ioana Radulescu <ruxandra.radulescu@nxp.com> | 2019-10-07 14:38:27 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-07 17:08:09 +0300 |
commit | 4b177f065e7ec37399b18e18412a8c7b75f8f299 (patch) | |
tree | 1f069b1c399a070968c6b400d480231b1d1b02a9 /drivers/net/ethernet/freescale/dpaa2 | |
parent | 219684a58d7226cd66438f9a72c35679d4cabadd (diff) | |
download | linux-4b177f065e7ec37399b18e18412a8c7b75f8f299.tar.xz |
dpaa2-eth: Fix minor bug in ethtool stats reporting
Don't print error message for a successful return value.
Fixes: d84c3a4ded96 ("dpaa2-eth: Add new DPNI statistics counters")
Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/dpaa2')
-rw-r--r-- | drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c b/drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c index 0aa1c34019bb..dc9a6c36cac0 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c @@ -216,7 +216,7 @@ static void dpaa2_eth_get_ethtool_stats(struct net_device *net_dev, if (err == -EINVAL) /* Older firmware versions don't support all pages */ memset(&dpni_stats, 0, sizeof(dpni_stats)); - else + else if (err) netdev_warn(net_dev, "dpni_get_stats(%d) failed\n", j); num_cnt = dpni_stats_page_size[j] / sizeof(u64); |