[PATCH 21/42] state: backend_circular: remove unnecessary warning

Sascha Hauer s.hauer at pengutronix.de
Fri Mar 31 00:03:25 PDT 2017


It's expected that NAND flashes contain bad blocks, do not warn
about them.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 common/state/backend_storage.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/common/state/backend_storage.c b/common/state/backend_storage.c
index 17013855b4..deae9c325b 100644
--- a/common/state/backend_storage.c
+++ b/common/state/backend_storage.c
@@ -242,11 +242,8 @@ static int state_storage_mtd_buckets_init(struct state_backend_storage *storage,
 							   eraseblock,
 							   writesize,
 							   meminfo);
-		if (ret) {
-			dev_warn(storage->dev, "Failed to create bucket at '%s' eraseblock %u\n",
-				 storage->path, eraseblock);
+		if (ret)
 			continue;
-		}
 
 		bucket->offset = offset;
 		bucket->num = nr_copies;
-- 
2.11.0




More information about the barebox mailing list