state: bucket_circular: -EUCLEAN means data could be read
-EUCLEAN returned from state_mtd_peb_read() means that the data shall still be used. This fixes initialization of buckets which need cleanup Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
1fde9ef265
commit
9df009de99
|
@ -390,7 +390,7 @@ static int state_backend_bucket_circular_init(
|
|||
|
||||
ret = state_mtd_peb_read(circ, buf, sub_offset,
|
||||
circ->writesize);
|
||||
if (ret)
|
||||
if (ret && ret != -EUCLEAN)
|
||||
return ret;
|
||||
|
||||
ret = mtd_buf_all_ff(buf, circ->writesize);
|
||||
|
|
Loading…
Reference in New Issue