Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274946
b: refs/heads/master
c: afa17de
h: refs/heads/master
v: v3
  • Loading branch information
Brian Norris authored and Artem Bityutskiy committed Sep 11, 2011
1 parent cb8be03 commit 0fd258b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 105513cc4a25522f959788371bd612f987d4d184
refs/heads/master: afa17de262633603dd65f89e9370f48e56b8c557
6 changes: 3 additions & 3 deletions trunk/drivers/mtd/nand/nand_bbt.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,7 @@ static int scan_read_raw_oob(struct mtd_info *mtd, uint8_t *buf, loff_t offs,

res = mtd->read_oob(mtd, offs, &ops);

/* Ignore ECC errors when checking for BBM */
if (res && res != -EUCLEAN && res != -EBADMSG)
if (res)
return res;

buf += mtd->oobsize + mtd->writesize;
Expand Down Expand Up @@ -400,7 +399,8 @@ static int scan_block_full(struct mtd_info *mtd, struct nand_bbt_descr *bd,
int ret, j;

ret = scan_read_raw_oob(mtd, buf, offs, readlen);
if (ret)
/* Ignore ECC errors when checking for BBM */
if (ret && ret != -EUCLEAN && ret != -EBADMSG)
return ret;

for (j = 0; j < len; j++, buf += scanlen) {
Expand Down

0 comments on commit 0fd258b

Please sign in to comment.