diff --git a/src/barebox-state/state.c b/src/barebox-state/state.c index 85fb1da..94c1203 100644 --- a/src/barebox-state/state.c +++ b/src/barebox-state/state.c @@ -571,7 +571,7 @@ struct state *state; int ret = 0; const char *backend_type; - const char *storage_type; + const char *storage_type = NULL; const char *alias; uint32_t stridesize; @@ -616,12 +616,7 @@ stridesize = 0; } - ret = of_property_read_string(node, "backend-storage-type", - &storage_type); - if (ret) { - storage_type = NULL; - dev_info(&state->dev, "No backend-storage-type found, using default.\n"); - } + of_property_read_string(node, "backend-storage-type", &storage_type); ret = state_format_init(state, backend_type, node, alias); if (ret)