summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/macppc')
-rw-r--r--sys/arch/macppc/macppc/ofw_machdep.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/macppc/macppc/ofw_machdep.c b/sys/arch/macppc/macppc/ofw_machdep.c
index ec5dabe02ef..0b7b1de829e 100644
--- a/sys/arch/macppc/macppc/ofw_machdep.c
+++ b/sys/arch/macppc/macppc/ofw_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ofw_machdep.c,v 1.54 2015/06/26 10:17:21 mpi Exp $ */
+/* $OpenBSD: ofw_machdep.c,v 1.55 2015/07/21 05:58:34 jsg Exp $ */
/* $NetBSD: ofw_machdep.c,v 1.1 1996/09/30 16:34:50 ws Exp $ */
/*
@@ -231,10 +231,11 @@ save_ofw_mapping(void)
/* Get firmware mappings. */
if (OF_getprop(chosen, "mmu", &mmui, sizeof(int)) != -1)
mmu = OF_instance_to_package(mmui);
- if (mmu != -1)
+ if (mmu != -1) {
len = OF_getproplen(mmu, "translations");
- if (len <= 0)
- return (0);
+ if (len <= 0)
+ return (0);
+ }
switch (acells) {
case 2: