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>
This commit is contained in:

committed by
David S. Miller

parent
d980b8d1fc
commit
5514174fe9
@@ -1501,10 +1501,9 @@ mv643xx_eth_get_link_ksettings_phy(struct mv643xx_eth_private *mp,
|
||||
struct ethtool_link_ksettings *cmd)
|
||||
{
|
||||
struct net_device *dev = mp->dev;
|
||||
int err;
|
||||
u32 supported, advertising;
|
||||
|
||||
err = phy_ethtool_ksettings_get(dev->phydev, cmd);
|
||||
phy_ethtool_ksettings_get(dev->phydev, cmd);
|
||||
|
||||
/*
|
||||
* The MAC does not support 1000baseT_Half.
|
||||
@@ -1520,7 +1519,7 @@ mv643xx_eth_get_link_ksettings_phy(struct mv643xx_eth_private *mp,
|
||||
ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising,
|
||||
advertising);
|
||||
|
||||
return err;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
Reference in New Issue
Block a user