net: use SPEED_UNKNOWN and DUPLEX_UNKNOWN when appropriate
[linux-2.6-block.git] / drivers / net / ethernet / chelsio / cxgb / cxgb2.c
index c1b2c1dbf015accf381c1f010610dcac625f618e..3784a8bd1fdd463b1f088ba0eaec267b8df92a9d 100644 (file)
@@ -580,8 +580,8 @@ static int get_settings(struct net_device *dev, struct ethtool_cmd *cmd)
                ethtool_cmd_speed_set(cmd, p->link_config.speed);
                cmd->duplex = p->link_config.duplex;
        } else {
-               ethtool_cmd_speed_set(cmd, -1);
-               cmd->duplex = -1;
+               ethtool_cmd_speed_set(cmd, SPEED_UNKNOWN);
+               cmd->duplex = DUPLEX_UNKNOWN;
        }
 
        cmd->port = (cmd->supported & SUPPORTED_TP) ? PORT_TP : PORT_FIBRE;