mtd: tests: ignore corrected bitflips in OOB on mtd_readtest
authorBrian Norris <computersforpeace@gmail.com>
Tue, 28 Jun 2011 23:28:59 +0000 (16:28 -0700)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Sun, 11 Sep 2011 12:02:14 +0000 (15:02 +0300)
commit003bc47922047e21ebfb19cb99317273b313f79d
treec946143910669bfef21b992ae3f8a2d82fa975eb
parent903cd06cd6ece7f9050a3ad5b03e0b76be2882ff
mtd: tests: ignore corrected bitflips in OOB on mtd_readtest

read_oob may now return ECC error codes. If the code is -EUCLEAN, then
we can safely ignore the error as a corrected bitflip.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <dedekind1@gmail.com>
drivers/mtd/tests/mtd_readtest.c