mtd: utilize `mtd_is_*()' functions
Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
This commit is contained in:

committed by
Artem Bityutskiy

parent
7387ce7732
commit
d57f40544a
@@ -258,7 +258,7 @@ static void find_next_position(struct mtdoops_context *cxt)
|
||||
ret = mtd->read(mtd, page * record_size, MTDOOPS_HEADER_SIZE,
|
||||
&retlen, (u_char *) &count[0]);
|
||||
if (retlen != MTDOOPS_HEADER_SIZE ||
|
||||
(ret < 0 && ret != -EUCLEAN)) {
|
||||
(ret < 0 && !mtd_is_bitflip(ret))) {
|
||||
printk(KERN_ERR "mtdoops: read failure at %ld (%td of %d read), err %d\n",
|
||||
page * record_size, retlen,
|
||||
MTDOOPS_HEADER_SIZE, ret);
|
||||
|
Reference in New Issue
Block a user