Skip to content

Commit 506f669

Browse files
cavagiudavem330
authored andcommitted
stmmac: fix the parsing of the eee_timer parameter
This pacth fixes the parsing of the eee_timer driver parameter. Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 462738f commit 506f669

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/net/ethernet/stmicro/stmmac/stmmac_main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2254,7 +2254,7 @@ static int __init stmmac_cmdline_opt(char *str)
22542254
} else if (!strncmp(opt, "pause:", 6)) {
22552255
if (kstrtoint(opt + 6, 0, &pause))
22562256
goto err;
2257-
} else if (!strncmp(opt, "eee_timer:", 6)) {
2257+
} else if (!strncmp(opt, "eee_timer:", 10)) {
22582258
if (kstrtoint(opt + 10, 0, &eee_timer))
22592259
goto err;
22602260
}

0 commit comments

Comments
 (0)