Skip to contentSkip to conversation

ethtool: fix typo on setting speed 10000

PATCH Applied Auke Kok 2 participants 2 messages Nov 26, 2007 – Dec 1, 2007

Subsystems (2)
lore
Share & tools
lore

Auke Kok

author
#0 lore raw

PATCH 1/1 ethtool: fix typo on setting speed 10000

From: Jesse Brandeburg <[email protected]>

fix the typo in speed 10000 setting.

---

 ethtool.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
ethtool.c +1 -1
index 3adf843..a668b49 100644
@@ -524,7 +524,7 @@ static void parse_cmdline(int argc, char **argp)
 					speed_wanted = SPEED_1000;
 				else if (!strcmp(argp[i], "2500"))
 					speed_wanted = SPEED_2500;
-				else if (!strcmp(argp[1], "10000"))
+				else if (!strcmp(argp[i], "10000"))
 					speed_wanted = SPEED_10000;
 				else
 					show_usage(1);