diff options
author | Jiri Pirko <jiri@resnulli.us> | 2014-06-06 16:17:01 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-07 03:24:07 +0400 |
commit | d4f3cd49d2800dc037724efa9b33c485a1cc23d3 (patch) | |
tree | d04f2c9e6a07b9d8224be2cd303f6d3566993cad /drivers/net/ntb_netdev.c | |
parent | 537fae0101c8853abb52136788173dde74b9d1e9 (diff) | |
download | linux-d4f3cd49d2800dc037724efa9b33c485a1cc23d3.tar.xz |
net: use ethtool_cmd_speed_set helper to set ethtool speed value
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ntb_netdev.c')
-rw-r--r-- | drivers/net/ntb_netdev.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ntb_netdev.c b/drivers/net/ntb_netdev.c index 27536aa89199..5a7e6397440a 100644 --- a/drivers/net/ntb_netdev.c +++ b/drivers/net/ntb_netdev.c @@ -298,7 +298,6 @@ static int ntb_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) { cmd->supported = SUPPORTED_Backplane; cmd->advertising = ADVERTISED_Backplane; - cmd->speed = SPEED_UNKNOWN; ethtool_cmd_speed_set(cmd, SPEED_UNKNOWN); cmd->duplex = DUPLEX_FULL; cmd->port = PORT_OTHER; |