diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2010-12-09 07:10:25 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-10 18:55:24 -0500 |
commit | ed4ba4b5b96742d29225308ccccbdb1810b63064 (patch) | |
tree | 2c28a534d7b7fe4ed58925401d69b14df90323be /drivers/net/sfc | |
parent | e596e6e4d578f2639416e620d367a3af34814a40 (diff) |
netdev: Use default implementation of ethtool_ops::get_link where possible
Various drivers are using implementations of ethtool_ops::get_link
that are equivalent to the default ethtool_op_get_link(). Change
them to use that instead.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc')
-rw-r--r-- | drivers/net/sfc/ethtool.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/net/sfc/ethtool.c b/drivers/net/sfc/ethtool.c index 5e50e57b0ae2..0e8bb19ed60d 100644 --- a/drivers/net/sfc/ethtool.c +++ b/drivers/net/sfc/ethtool.c | |||
@@ -620,13 +620,6 @@ static int efx_ethtool_nway_reset(struct net_device *net_dev) | |||
620 | return mdio45_nway_restart(&efx->mdio); | 620 | return mdio45_nway_restart(&efx->mdio); |
621 | } | 621 | } |
622 | 622 | ||
623 | static u32 efx_ethtool_get_link(struct net_device *net_dev) | ||
624 | { | ||
625 | struct efx_nic *efx = netdev_priv(net_dev); | ||
626 | |||
627 | return efx->link_state.up; | ||
628 | } | ||
629 | |||
630 | static int efx_ethtool_get_coalesce(struct net_device *net_dev, | 623 | static int efx_ethtool_get_coalesce(struct net_device *net_dev, |
631 | struct ethtool_coalesce *coalesce) | 624 | struct ethtool_coalesce *coalesce) |
632 | { | 625 | { |
@@ -1047,7 +1040,7 @@ const struct ethtool_ops efx_ethtool_ops = { | |||
1047 | .get_msglevel = efx_ethtool_get_msglevel, | 1040 | .get_msglevel = efx_ethtool_get_msglevel, |
1048 | .set_msglevel = efx_ethtool_set_msglevel, | 1041 | .set_msglevel = efx_ethtool_set_msglevel, |
1049 | .nway_reset = efx_ethtool_nway_reset, | 1042 | .nway_reset = efx_ethtool_nway_reset, |
1050 | .get_link = efx_ethtool_get_link, | 1043 | .get_link = ethtool_op_get_link, |
1051 | .get_coalesce = efx_ethtool_get_coalesce, | 1044 | .get_coalesce = efx_ethtool_get_coalesce, |
1052 | .set_coalesce = efx_ethtool_set_coalesce, | 1045 | .set_coalesce = efx_ethtool_set_coalesce, |
1053 | .get_ringparam = efx_ethtool_get_ringparam, | 1046 | .get_ringparam = efx_ethtool_get_ringparam, |