mtd: fix callback return value check
authorBaruch Siach <baruch@tkos.co.il>
Mon, 9 Aug 2010 04:20:23 +0000 (07:20 +0300)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 24 Oct 2010 22:26:13 +0000 (23:26 +0100)
commit12c8eb98de747ebc08404e3719c40abb405994e2
treee48ab66a3f6578a05fe83a3d099a7d0f7b04a0d2
parent899611ee7d373e5eeda08e9a8632684e1ebbbf00
mtd: fix callback return value check

Drivers may (and do) return negative errno values other than -1 from the
ecc.correct callback.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_base.c