summaryrefslogtreecommitdiff
path: root/common/cmd_nand.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2005-08-12 16:46:35 +0200
committerStefan Roese <sr@denx.de>2005-08-12 16:46:35 +0200
commit9bcf2ab41ffdb7ab92f3eb24624853268c8dbadc (patch)
tree45d827093631b736a51ec4ba0af71278c3b62108 /common/cmd_nand.c
parentdafba16e6fc1837381c8e74c4891ad6965cf54ab (diff)
downloadu-boot-imx-9bcf2ab41ffdb7ab92f3eb24624853268c8dbadc.zip
u-boot-imx-9bcf2ab41ffdb7ab92f3eb24624853268c8dbadc.tar.gz
u-boot-imx-9bcf2ab41ffdb7ab92f3eb24624853268c8dbadc.tar.bz2
Fix problem in cmd_nand.c (only when defined CFG_NAND_SKIP_BAD_DOT_I)
Patch by Matthias Fuchs, 4 May 2005
Diffstat (limited to 'common/cmd_nand.c')
-rw-r--r--common/cmd_nand.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/cmd_nand.c b/common/cmd_nand.c
index 4499917..5648ab2 100644
--- a/common/cmd_nand.c
+++ b/common/cmd_nand.c
@@ -225,10 +225,11 @@ int do_nand (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
#ifdef CFG_NAND_SKIP_BAD_DOT_I
/* need ".i" same as ".jffs2s" for compatibility with older units (esd) */
/* ".i" for image -> read skips bad block (no 0xff) */
- else if (cmdtail && !strcmp(cmdtail, ".i"))
+ else if (cmdtail && !strcmp(cmdtail, ".i")) {
cmd |= NANDRW_JFFS2; /* skip bad blocks (on read too) */
if (cmd & NANDRW_READ)
cmd |= NANDRW_JFFS2_SKIP; /* skip bad blocks (on read too) */
+ }
#endif /* CFG_NAND_SKIP_BAD_DOT_I */
else if (cmdtail) {
printf ("Usage:\n%s\n", cmdtp->usage);