summaryrefslogtreecommitdiffstats
path: root/common/cmd_nand.c
diff options
context:
space:
mode:
authorHarvey Chapman <hchapman@3gfp.com>2013-02-07 11:34:44 +0000
committerScott Wood <scottwood@freescale.com>2013-02-22 18:49:04 -0600
commitced199dc858d57e807d3ec2a511c4bd9a4bd8765 (patch)
treee99dc7ee146865f2cabf3d8be90e7e040dd9c8c6 /common/cmd_nand.c
parent8fdf1e0f6d645f79a9b0677e062bf48d786c5b9e (diff)
downloadu-boot-ced199dc858d57e807d3ec2a511c4bd9a4bd8765.tar.gz
u-boot-ced199dc858d57e807d3ec2a511c4bd9a4bd8765.tar.xz
u-boot-ced199dc858d57e807d3ec2a511c4bd9a4bd8765.zip
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>
Diffstat (limited to 'common/cmd_nand.c')
-rw-r--r--common/cmd_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_nand.c b/common/cmd_nand.c
index 1568594ca4..495610c405 100644
--- a/common/cmd_nand.c
+++ b/common/cmd_nand.c
@@ -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;