diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-07-21 05:58:35 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-07-21 05:58:35 +0000 |
commit | b4ca49a318b8c99c75f8f973bf529aa57ab7c5de (patch) | |
tree | 5dad81766ec12667ac745e4ef8b6f198a1209115 /sys | |
parent | 8dafafb3f1db5ba936f052c563529162313cd053 (diff) |
add braces to avoid an uninitialised variable use
ok mpi@ looks correct miod@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/macppc/macppc/ofw_machdep.c | 9 |
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: |