mtd: nand: tests: fix regression introduced in mtd_nandectest
authorJorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Tue, 1 Mar 2016 21:04:00 +0000 (16:04 -0500)
committerBrian Norris <computersforpeace@gmail.com>
Sat, 5 Mar 2016 00:59:20 +0000 (16:59 -0800)
commitc57753d4541d5104284abbdceb841e690394e55f
treeebc005a85403d9768410a0a8affbd7f28c4b50d5
parent44248affb5d82d32cdb58a92a94ce191d4ddee60
mtd: nand: tests: fix regression introduced in mtd_nandectest

Offending Commit: 6e94119 "mtd: nand: return consistent error codes in
ecc.correct() implementations"

The new error code was not being handled properly in double bit error
detection.

Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Tested-by: Franklin S Cooper Jr <fcooper@ti.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/tests/mtd_nandecctest.c