mtd: fix mtd_read return value
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 a8fd9bf commit 080a4e9c9b43d0a1cda7726bf14a828d4eff3b01
@Sascha Hauer Sascha Hauer authored on 20 Dec 2013
Showing 1 changed file
View
drivers/mtd/core.c