diff options
Diffstat (limited to 'drivers/mtd/nand/nand_base.c')
-rw-r--r-- | drivers/mtd/nand/nand_base.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 9d01c4df838c..b8eabde8dbdc 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c | |||
@@ -1204,8 +1204,7 @@ static int nand_read_subpage(struct mtd_info *mtd, struct nand_chip *chip, | |||
1204 | * ecc.pos. Let's make sure that there are no gaps in ECC positions. | 1204 | * ecc.pos. Let's make sure that there are no gaps in ECC positions. |
1205 | */ | 1205 | */ |
1206 | for (i = 0; i < eccfrag_len - 1; i++) { | 1206 | for (i = 0; i < eccfrag_len - 1; i++) { |
1207 | if (eccpos[i + start_step * chip->ecc.bytes] + 1 != | 1207 | if (eccpos[i + index] + 1 != eccpos[i + index + 1]) { |
1208 | eccpos[i + start_step * chip->ecc.bytes + 1]) { | ||
1209 | gaps = 1; | 1208 | gaps = 1; |
1210 | break; | 1209 | break; |
1211 | } | 1210 | } |