Skip to contentSkip to conversation

tg3: Fix a flags typo

PATCH Applied Matt Carlson 2 participants 2 messages Jun 9, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/4 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.

---
 drivers/net/tg3.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/tg3.c +1 -1
index 4c248d7..c129318 100644
@@ -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);
Signature · 1 line
1.5.2.5