projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'nds32-for-linus-4.18' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git]
/
drivers
/
mtd
/
nand
/
raw
/
nand_base.c
diff --git
a/drivers/mtd/nand/raw/nand_base.c
b/drivers/mtd/nand/raw/nand_base.c
index
10c4f99
..
b01d15e
100644
(file)
--- a/
drivers/mtd/nand/raw/nand_base.c
+++ b/
drivers/mtd/nand/raw/nand_base.c
@@
-440,7
+440,7
@@
static int nand_block_bad(struct mtd_info *mtd, loff_t ofs)
for (; page < page_end; page++) {
res = chip->ecc.read_oob(mtd, chip, page);
- if (res)
+ if (res
< 0
)
return res;
bad = chip->oob_poi[chip->badblockpos];