diff options
author | Jiri Pirko <jiri@resnulli.us> | 2014-06-06 08:17:00 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-06 19:24:07 -0400 |
commit | 537fae0101c8853abb52136788173dde74b9d1e9 (patch) | |
tree | e6a169f851eb766b0574ac4fbbec45f474f11998 /drivers/net/ethernet/nvidia | |
parent | 1caaab63d3ae3218a7fb1d25626d941d9ffb11dc (diff) |
net: use SPEED_UNKNOWN and DUPLEX_UNKNOWN when appropriate
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/nvidia')
-rw-r--r-- | drivers/net/ethernet/nvidia/forcedeth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/nvidia/forcedeth.c b/drivers/net/ethernet/nvidia/forcedeth.c index 6f255f534d25..9afc536c5734 100644 --- a/drivers/net/ethernet/nvidia/forcedeth.c +++ b/drivers/net/ethernet/nvidia/forcedeth.c | |||
@@ -4285,8 +4285,8 @@ static int nv_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) | |||
4285 | if (np->duplex) | 4285 | if (np->duplex) |
4286 | ecmd->duplex = DUPLEX_FULL; | 4286 | ecmd->duplex = DUPLEX_FULL; |
4287 | } else { | 4287 | } else { |
4288 | speed = -1; | 4288 | speed = SPEED_UNKNOWN; |
4289 | ecmd->duplex = -1; | 4289 | ecmd->duplex = DUPLEX_UNKNOWN; |
4290 | } | 4290 | } |
4291 | ethtool_cmd_speed_set(ecmd, speed); | 4291 | ethtool_cmd_speed_set(ecmd, speed); |
4292 | ecmd->autoneg = np->autoneg; | 4292 | ecmd->autoneg = np->autoneg; |