[MTD] [NAND] treat any negative return value from correct() as an error
authorMatt Reimer <mreimer@vpop.net>
Wed, 17 Oct 2007 21:33:23 +0000 (14:33 -0700)
committerDavid Woodhouse <dwmw2@infradead.org>
Sat, 20 Oct 2007 21:27:22 +0000 (22:27 +0100)
commitc32b8dcc45c823cf30dcdf0fc37ee2f6b78f38cb
treea2f1cb94c901c56eb53000655f047c3fe98134ff
parent39e73fc10e916db93c8a2c622f0315d296e66cf4
[MTD] [NAND] treat any negative return value from correct() as an error

Treat any negative return value from a NAND driver's correct() function
as a failure, rather than just -1.

Signed-off-by: Matt Reimer <mreimer@vpop.net>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/nand/nand_base.c