diff options
author | Brian Norris <computersforpeace@gmail.com> | 2011-09-20 21:34:25 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-21 02:19:06 -0400 |
commit | d57f40544a41fdfe90fd863b6865138c5a82f1cc (patch) | |
tree | 4d5e8f6d0a62e8fa06ccfabd13fe9364b19db1b5 /drivers/mtd/mtdoops.c | |
parent | 7387ce773256f446bdd0280b2449b635441f906e (diff) |
mtd: utilize `mtd_is_*()' functions
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Diffstat (limited to 'drivers/mtd/mtdoops.c')
-rw-r--r-- | drivers/mtd/mtdoops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/mtdoops.c b/drivers/mtd/mtdoops.c index e3e40f440323..1e2fa6236705 100644 --- a/drivers/mtd/mtdoops.c +++ b/drivers/mtd/mtdoops.c | |||
@@ -258,7 +258,7 @@ static void find_next_position(struct mtdoops_context *cxt) | |||
258 | ret = mtd->read(mtd, page * record_size, MTDOOPS_HEADER_SIZE, | 258 | ret = mtd->read(mtd, page * record_size, MTDOOPS_HEADER_SIZE, |
259 | &retlen, (u_char *) &count[0]); | 259 | &retlen, (u_char *) &count[0]); |
260 | if (retlen != MTDOOPS_HEADER_SIZE || | 260 | if (retlen != MTDOOPS_HEADER_SIZE || |
261 | (ret < 0 && ret != -EUCLEAN)) { | 261 | (ret < 0 && !mtd_is_bitflip(ret))) { |
262 | printk(KERN_ERR "mtdoops: read failure at %ld (%td of %d read), err %d\n", | 262 | printk(KERN_ERR "mtdoops: read failure at %ld (%td of %d read), err %d\n", |
263 | page * record_size, retlen, | 263 | page * record_size, retlen, |
264 | MTDOOPS_HEADER_SIZE, ret); | 264 | MTDOOPS_HEADER_SIZE, ret); |