aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ibmveth.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2010-12-09 07:10:25 -0500
committerDavid S. Miller <davem@davemloft.net>2010-12-10 18:55:24 -0500
commited4ba4b5b96742d29225308ccccbdb1810b63064 (patch)
tree2c28a534d7b7fe4ed58925401d69b14df90323be /drivers/net/ibmveth.c
parente596e6e4d578f2639416e620d367a3af34814a40 (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/ibmveth.c')
-rw-r--r--drivers/net/ibmveth.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/ibmveth.c b/drivers/net/ibmveth.c
index c454b45ca7ec..5522d459654c 100644
--- a/drivers/net/ibmveth.c
+++ b/drivers/net/ibmveth.c
@@ -729,11 +729,6 @@ static void netdev_get_drvinfo(struct net_device *dev,
729 sizeof(info->version) - 1); 729 sizeof(info->version) - 1);
730} 730}
731 731
732static u32 netdev_get_link(struct net_device *dev)
733{
734 return 1;
735}
736
737static void ibmveth_set_rx_csum_flags(struct net_device *dev, u32 data) 732static void ibmveth_set_rx_csum_flags(struct net_device *dev, u32 data)
738{ 733{
739 struct ibmveth_adapter *adapter = netdev_priv(dev); 734 struct ibmveth_adapter *adapter = netdev_priv(dev);
@@ -918,7 +913,7 @@ static void ibmveth_get_ethtool_stats(struct net_device *dev,
918static const struct ethtool_ops netdev_ethtool_ops = { 913static const struct ethtool_ops netdev_ethtool_ops = {
919 .get_drvinfo = netdev_get_drvinfo, 914 .get_drvinfo = netdev_get_drvinfo,
920 .get_settings = netdev_get_settings, 915 .get_settings = netdev_get_settings,
921 .get_link = netdev_get_link, 916 .get_link = ethtool_op_get_link,
922 .set_tx_csum = ibmveth_set_tx_csum, 917 .set_tx_csum = ibmveth_set_tx_csum,
923 .get_rx_csum = ibmveth_get_rx_csum, 918 .get_rx_csum = ibmveth_get_rx_csum,
924 .set_rx_csum = ibmveth_set_rx_csum, 919 .set_rx_csum = ibmveth_set_rx_csum,