|
@@ -1204,8 +1204,7 @@ static int nand_read_subpage(struct mtd_info *mtd, struct nand_chip *chip,
|
|
* ecc.pos. Let's make sure that there are no gaps in ECC positions.
|
|
* ecc.pos. Let's make sure that there are no gaps in ECC positions.
|
|
*/
|
|
*/
|
|
for (i = 0; i < eccfrag_len - 1; i++) {
|
|
for (i = 0; i < eccfrag_len - 1; i++) {
|
|
- if (eccpos[i + start_step * chip->ecc.bytes] + 1 !=
|
|
|
|
- eccpos[i + start_step * chip->ecc.bytes + 1]) {
|
|
|
|
|
|
+ if (eccpos[i + index] + 1 != eccpos[i + index + 1]) {
|
|
gaps = 1;
|
|
gaps = 1;
|
|
break;
|
|
break;
|
|
}
|
|
}
|