state: drop lazy_init
lazy_init is an optimization that makes it possible to read only up to
the first valid bucket when starting. However, when restoring consistency,
immediately afterwards we have we have to initialize all buckets anyway,
so being lazy doesn't give us any gain. Remove it to simplify the code.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent eee0877 commit 5079c67e049039f3b6f7e94b4b020f8032b5108e
@Sascha Hauer Sascha Hauer authored on 22 Mar 2017
Showing 4 changed files
View
src/barebox-state/backend_bucket_cached.c
View
src/barebox-state/backend_bucket_circular.c
View
src/barebox-state/backend_storage.c
View
src/barebox-state/state.h