diff options
author | yuval.shaia@oracle.com <yuval.shaia@oracle.com> | 2017-06-13 10:09:46 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-13 12:59:06 -0400 |
commit | 5514174fe9c61c83bd8781c1e048ea6b4bf16a14 (patch) | |
tree | bea0cf943d500b7a6ba95506e601e7b885ec47bc /drivers/net/ethernet/freescale/dpaa | |
parent | d980b8d1fc3c6a37f1123995d3939c6b0eeff1c5 (diff) | |
download | linux-5514174fe9c61c83bd8781c1e048ea6b4bf16a14.tar.bz2 |
net: phy: Make phy_ethtool_ksettings_get return void
Make return value void since function never return meaningfull value
Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Acked-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/dpaa')
-rw-r--r-- | drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c b/drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c index 15571e251fb9..aad825088357 100644 --- a/drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c +++ b/drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c @@ -75,16 +75,14 @@ static char dpaa_stats_global[][ETH_GSTRING_LEN] = { static int dpaa_get_link_ksettings(struct net_device *net_dev, struct ethtool_link_ksettings *cmd) { - int err; - if (!net_dev->phydev) { netdev_dbg(net_dev, "phy device not initialized\n"); return 0; } - err = phy_ethtool_ksettings_get(net_dev->phydev, cmd); + phy_ethtool_ksettings_get(net_dev->phydev, cmd); - return err; + return 0; } static int dpaa_set_link_ksettings(struct net_device *net_dev, |