Skip to content

Commit

Permalink
dpaa2-eth: Fix minor bug in ethtool stats reporting
Browse files Browse the repository at this point in the history
Don't print error message for a successful return value.

Fixes: d84c3a4 ("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>
  • Loading branch information
Ioana Radulescu authored and David S. Miller committed Oct 7, 2019
1 parent 219684a commit 4b177f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4b177f0

Please sign in to comment.