summaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2008-06-10 00:40:26 +0200
committerDavid S. Miller <davem@davemloft.net>2008-06-10 00:40:26 +0200
commit0ba11fb307a4f18c11df6f5f255158ce055a2a16 (patch)
treef15821ab564adb92007545b7adbb851af0b73b70 /drivers/net/tg3.c
parenttg3: Fix 5714S / 5715S / 5780S link failures (diff)
downloadlinux-0ba11fb307a4f18c11df6f5f255158ce055a2a16.tar.xz
linux-0ba11fb307a4f18c11df6f5f255158ce055a2a16.zip
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>
Diffstat (limited to '')
-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)
(cmd->speed == SPEED_1000))
return -EINVAL;
else if ((cmd->speed == SPEED_1000) &&
- (tp->tg3_flags2 & TG3_FLAG_10_100_ONLY))
+ (tp->tg3_flags & TG3_FLAG_10_100_ONLY))
return -EINVAL;
tg3_full_lock(tp, 0);