net/{mii, smsc}: Make mii_ethtool_get_link_ksettings and smc_netdev_get_ecmd return void
Make return value void since functions never returns meaningfull value. Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
c7c6b8715a
commit
82c01a84d5
@@ -1410,14 +1410,13 @@ static int cp_get_link_ksettings(struct net_device *dev,
|
||||
struct ethtool_link_ksettings *cmd)
|
||||
{
|
||||
struct cp_private *cp = netdev_priv(dev);
|
||||
int rc;
|
||||
unsigned long flags;
|
||||
|
||||
spin_lock_irqsave(&cp->lock, flags);
|
||||
rc = mii_ethtool_get_link_ksettings(&cp->mii_if, cmd);
|
||||
mii_ethtool_get_link_ksettings(&cp->mii_if, cmd);
|
||||
spin_unlock_irqrestore(&cp->lock, flags);
|
||||
|
||||
return rc;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cp_set_link_ksettings(struct net_device *dev,
|
||||
|
Reference in New Issue
Block a user