mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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: Harvey Chapman <hchapman@3gfp.com>
This commit is contained in:

committed by
Scott Wood

parent
8fdf1e0f6d
commit
ced199dc85
@ -608,7 +608,7 @@ static int do_nand(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
size_t rwsize;
|
||||
ulong pagecount = 1;
|
||||
int read;
|
||||
int raw;
|
||||
int raw = 0;
|
||||
|
||||
if (argc < 4)
|
||||
goto usage;
|
||||
|
Reference in New Issue
Block a user