aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/iseries_veth.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/iseries_veth.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/iseries_veth.c')
-rw-r--r--drivers/net/iseries_veth.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/iseries_veth.c b/drivers/net/iseries_veth.c
index 38e15be6d513..63ac531f5996 100644
--- a/drivers/net/iseries_veth.c
+++ b/drivers/net/iseries_veth.c
@@ -1009,15 +1009,10 @@ static int veth_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd)
1009 return 0; 1009 return 0;
1010} 1010}
1011 1011
1012static u32 veth_get_link(struct net_device *dev)
1013{
1014 return 1;
1015}
1016
1017static const struct ethtool_ops ops = { 1012static const struct ethtool_ops ops = {
1018 .get_drvinfo = veth_get_drvinfo, 1013 .get_drvinfo = veth_get_drvinfo,
1019 .get_settings = veth_get_settings, 1014 .get_settings = veth_get_settings,
1020 .get_link = veth_get_link, 1015 .get_link = ethtool_op_get_link,
1021}; 1016};
1022 1017
1023static const struct net_device_ops veth_netdev_ops = { 1018static const struct net_device_ops veth_netdev_ops = {