diff options
author | Jiri Pirko <jiri@resnulli.us> | 2014-06-06 14:17:00 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-06 16:24:07 -0700 |
commit | 537fae0101c8853abb52136788173dde74b9d1e9 (patch) | |
tree | e6a169f851eb766b0574ac4fbbec45f474f11998 /drivers/net/ethernet/atheros/atl1e | |
parent | 1caaab63d3ae3218a7fb1d25626d941d9ffb11dc (diff) | |
download | talos-obmc-linux-537fae0101c8853abb52136788173dde74b9d1e9.tar.gz talos-obmc-linux-537fae0101c8853abb52136788173dde74b9d1e9.zip |
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/atheros/atl1e')
-rw-r--r-- | drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c b/drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c index 206e9b7be431..1be072f4afc2 100644 --- a/drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c +++ b/drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c @@ -57,8 +57,8 @@ static int atl1e_get_settings(struct net_device *netdev, else ecmd->duplex = DUPLEX_HALF; } else { - ethtool_cmd_speed_set(ecmd, -1); - ecmd->duplex = -1; + ethtool_cmd_speed_set(ecmd, SPEED_UNKNOWN); + ecmd->duplex = DUPLEX_UNKNOWN; } ecmd->autoneg = AUTONEG_ENABLE; |