Skip to content
Snippets Groups Projects
Commit ced199dc authored by Harvey Chapman's avatar Harvey Chapman Committed by Scott Wood
Browse files

nand: fix nand read.option parsing


"nand read.part addr off size" would be treated as "nand read.raw addr off 1"
It now fails as intended stating "Unknown nand command suffix '.part'"

Signed-off-by: default avatarHarvey Chapman <hchapman@3gfp.com>
parent 8fdf1e0f
Branches
Tags
No related merge requests found
...@@ -608,7 +608,7 @@ static int do_nand(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) ...@@ -608,7 +608,7 @@ static int do_nand(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
size_t rwsize; size_t rwsize;
ulong pagecount = 1; ulong pagecount = 1;
int read; int read;
int raw; int raw = 0;
if (argc < 4) if (argc < 4)
goto usage; goto usage;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment