summaryrefslogtreecommitdiffstats
path: root/cbtable.c
diff options
context:
space:
mode:
Diffstat (limited to 'cbtable.c')
-rw-r--r--cbtable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cbtable.c b/cbtable.c
index 8f906d4..9aa9e84 100644
--- a/cbtable.c
+++ b/cbtable.c
@@ -212,7 +212,7 @@ int coreboot_init(void)
start = 0x0;
#endif
table_area = physmap_try_ro("low megabyte", start, BYTES_TO_MAP - start);
- if (!table_area) {
+ if (ERROR_PTR == table_area) {
msg_perr("Failed getting access to coreboot low tables.\n");
return -1;
}
@@ -228,7 +228,7 @@ int coreboot_init(void)
start &= ~(getpagesize() - 1);
physunmap(table_area, BYTES_TO_MAP);
table_area = physmap_try_ro("high tables", start, BYTES_TO_MAP);
- if (!table_area) {
+ if (ERROR_PTR == table_area) {
msg_perr("Failed getting access to coreboot "
"high tables.\n");
return -1;
OpenPOWER on IntegriCloud