mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
net: phy: Make phy_ethtool_ksettings_get return void
Make return value void since function never return meaningfull value Signed-off-by: Yuval Shaia <[email protected]> Acked-by: Sergei Shtylyov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
d980b8d1fc
commit
5514174fe9
21 changed files with 68 additions and 52 deletions
|
|
@ -387,12 +387,13 @@ dsa_slave_get_link_ksettings(struct net_device *dev,
|
|||
struct ethtool_link_ksettings *cmd)
|
||||
{
|
||||
struct dsa_slave_priv *p = netdev_priv(dev);
|
||||
int err = -EOPNOTSUPP;
|
||||
|
||||
if (p->phy != NULL)
|
||||
err = phy_ethtool_ksettings_get(p->phy, cmd);
|
||||
if (!p->phy)
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
return err;
|
||||
phy_ethtool_ksettings_get(p->phy, cmd);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
Loading…
Reference in a new issue