diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2008-06-09 18:40:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-06-09 18:40:26 -0400 |
commit | 0ba11fb307a4f18c11df6f5f255158ce055a2a16 (patch) | |
tree | f15821ab564adb92007545b7adbb851af0b73b70 | |
parent | 2bd3ed0479c35f7c8dadecf72b725ca0c20ea015 (diff) |
tg3: Fix a flags typo
This patch fixes a problem where the TG3_FLAG_10_100_ONLY flag was
testing against the wrong flags variable.
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/tg3.c | 2 |
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); |