* [PATCH 2/4] tg3: Fix a flags typo
@ 2008-06-09 18:25 Matt Carlson
2008-06-09 22:42 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Matt Carlson @ 2008-06-09 18:25 UTC (permalink / raw)
To: davem; +Cc: netdev, Michael Chan, andy
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>
---
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 4c248d7..c129318 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);
--
1.5.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-09 22:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-09 18:25 [PATCH 2/4] tg3: Fix a flags typo Matt Carlson
2008-06-09 22:42 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).