| Submitter | York Sun |
|---|---|
| Date | Jan. 4, 2013, 6:14 p.m. |
| Message ID | <1357323245-12455-3-git-send-email-yorksun@freescale.com> |
| Download | mbox | patch |
| Permalink | /patch/209515/ |
| State | Accepted, archived |
| Delegated to: | Andy Fleming |
| Headers | show |
Comments
Patch
diff --git a/arch/powerpc/cpu/mpc8xxx/ddr/interactive.c b/arch/powerpc/cpu/mpc8xxx/ddr/interactive.c index 4d1cf3c..0474acc 100644 --- a/arch/powerpc/cpu/mpc8xxx/ddr/interactive.c +++ b/arch/powerpc/cpu/mpc8xxx/ddr/interactive.c @@ -1390,9 +1390,10 @@ static unsigned int fsl_ddr_parse_interactive_cmd( unsigned int i, j; unsigned int error = 0; - unsigned int matched = 0; for (i = 1; i < argc; i++) { + unsigned int matched = 0; + for (j = 0; j < n_opts; j++) { if (strcmp(options[j].data_name, argv[i]) != 0) continue;