aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/tg3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 4c248d79ee44..c12931829439 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -8598,7 +8598,7 @@ static int tg3_set_settings(struct net_device *dev, struct ethtool_cmd *cmd)
8598 (cmd->speed == SPEED_1000)) 8598 (cmd->speed == SPEED_1000))
8599 return -EINVAL; 8599 return -EINVAL;
8600 else if ((cmd->speed == SPEED_1000) && 8600 else if ((cmd->speed == SPEED_1000) &&
8601 (tp->tg3_flags2 & TG3_FLAG_10_100_ONLY)) 8601 (tp->tg3_flags & TG3_FLAG_10_100_ONLY))
8602 return -EINVAL; 8602 return -EINVAL;
8603 8603
8604 tg3_full_lock(tp, 0); 8604 tg3_full_lock(tp, 0);