dev: gcdb: return without error when splash partition is missing
A missing splash partition should be a non-fatal error,
as it will be missing on targets without dfps support.
Return NO_ERROR in this case so display initialization
can continue.
Change-Id: I3ec8456db6f9a1a83dc583c7f63f9ebf4a39486d
diff --git a/dev/gcdb/display/gcdb_display.c b/dev/gcdb/display/gcdb_display.c
index 4a49b1b..c2433a1 100755
--- a/dev/gcdb/display/gcdb_display.c
+++ b/dev/gcdb/display/gcdb_display.c
@@ -197,9 +197,9 @@
struct dfps_info *dfps;
index = partition_get_index("splash");
- if (index == 0) {
- dprintf(CRITICAL, "ERROR: splash Partition table not found\n");
- ret = ERROR;
+ if (index == INVALID_PTN) {
+ dprintf(INFO, "%s: splash partition table not found\n", __func__);
+ ret = NO_ERROR;
goto splash_err;
}
@@ -258,9 +258,9 @@
unsigned long long ptn;
index = partition_get_index("splash");
- if (index == 0) {
- dprintf(CRITICAL, "ERROR: splash Partition table not found\n");
- ret = ERROR;
+ if (index == INVALID_PTN) {
+ dprintf(INFO, "%s: splash partition table not found\n", __func__);
+ ret = NO_ERROR;
goto store_err;
}