summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-12-07 22:47:17 +0100
committerWolfgang Denk <wd@denx.de>2009-12-07 22:47:17 +0100
commit206c00f26f56af02686cb69bfe5c75e979063171 (patch)
tree4e637df34f87762a2e70649e88f52ac973df1f00 /drivers/mtd
parent39ff7d5f4cc547a2034a8bfc2a5b5f4b62fd5c20 (diff)
parentf8450829f921cf10667af98a8d08edfa3d998f04 (diff)
downloadu-boot-imx-206c00f26f56af02686cb69bfe5c75e979063171.zip
u-boot-imx-206c00f26f56af02686cb69bfe5c75e979063171.tar.gz
u-boot-imx-206c00f26f56af02686cb69bfe5c75e979063171.tar.bz2
Merge branch 'master' into next
Conflicts: lib_generic/zlib.c Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/nand_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_util.c b/drivers/mtd/nand/nand_util.c
index bec9277..7085d42 100644
--- a/drivers/mtd/nand/nand_util.c
+++ b/drivers/mtd/nand/nand_util.c
@@ -452,7 +452,7 @@ static size_t get_len_incl_bad (nand_info_t *nand, loff_t offset,
len_incl_bad += block_len;
offset += block_len;
- if ((offset + len_incl_bad) >= nand->size)
+ if (offset >= nand->size)
break;
}