mtd: fix reading data from page that needs cleanup
mtd_read´() returns -EUCLEAN to indicate that a page needs cleanup.
This value shouldn't be returned from the mtd read file operation
since this should return the number of bytes read.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 26a1aed commit 66d7674f8babfebac46ee203f7d64deda0d7ab21
@Sascha Hauer Sascha Hauer authored on 20 Mar 2017
Showing 1 changed file
View
drivers/mtd/core.c