diff options
author | Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com> | 2018-07-04 11:14:47 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-07 10:44:09 +0900 |
commit | f3146f3774c8657b25326313ce807a5d4eac1d40 (patch) | |
tree | c55007e7edb124720610c1b87a573ca7cacff37d /drivers/net/ethernet/renesas | |
parent | 4c10628afda78dbf5dffc13360b576370ee98aab (diff) | |
download | talos-obmc-linux-f3146f3774c8657b25326313ce807a5d4eac1d40.tar.gz talos-obmc-linux-f3146f3774c8657b25326313ce807a5d4eac1d40.zip |
sh_eth: remove useless serialization in sh_eth_get_link_ksettings()
phy_ethtool_ksettings_get() call does not modify device state or device
driver state, hence there is no need to utilize a driver specific
spinlock.
Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Reviewed-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/renesas')
-rw-r--r-- | drivers/net/ethernet/renesas/sh_eth.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index 50ff18870be2..152edd1e9a23 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c @@ -2043,15 +2043,10 @@ static int sh_eth_phy_start(struct net_device *ndev) static int sh_eth_get_link_ksettings(struct net_device *ndev, struct ethtool_link_ksettings *cmd) { - struct sh_eth_private *mdp = netdev_priv(ndev); - unsigned long flags; - if (!ndev->phydev) return -ENODEV; - spin_lock_irqsave(&mdp->lock, flags); phy_ethtool_ksettings_get(ndev->phydev, cmd); - spin_unlock_irqrestore(&mdp->lock, flags); return 0; } |