mtd: fix wrong return values in cdev read
mtd->read returns the number of bitflips as positive numbers.
Instead of returning these numbers Return -EUCLEAN when the bitflip
threshold has been reached, 0 otherwise.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 26f2c81 commit a8fd9bfd126cee8a02400f49301fb58228a2bf26
@Sascha Hauer Sascha Hauer authored on 19 Dec 2013
Showing 1 changed file
View
drivers/mtd/core.c