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: NBaruch Siach <baruch@tkos.co.il> Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
Showing
想要评论请 注册 或 登录