Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/macppc/dev add braces.



details:   https://anonhg.NetBSD.org/src/rev/440572681973
branches:  trunk
changeset: 320900:440572681973
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Mar 04 15:25:15 2018 +0000

description:
add braces.

diffstat:

 sys/arch/macppc/dev/obio.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 259449753c99 -r 440572681973 sys/arch/macppc/dev/obio.c
--- a/sys/arch/macppc/dev/obio.c        Sun Mar 04 13:24:46 2018 +0000
+++ b/sys/arch/macppc/dev/obio.c        Sun Mar 04 15:25:15 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: obio.c,v 1.41 2014/11/11 23:08:37 macallan Exp $       */
+/*     $NetBSD: obio.c,v 1.42 2018/03/04 15:25:15 christos Exp $       */
 
 /*-
  * Copyright (C) 1998  Internet Research Institute, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: obio.c,v 1.41 2014/11/11 23:08:37 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: obio.c,v 1.42 2018/03/04 15:25:15 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -154,10 +154,11 @@
        case PCI_PRODUCT_APPLE_PANGEA_MACIO:
        case PCI_PRODUCT_APPLE_INTREPID:
                node = pcidev_to_ofdev(pa->pa_pc, pa->pa_tag);
-               if (node == -1)
+               if (node == -1) {
                        node = OF_finddevice("mac-io");
                        if (node == -1)
                                node = OF_finddevice("/pci/mac-io");
+               }
                break;
        case PCI_PRODUCT_APPLE_K2:
        case PCI_PRODUCT_APPLE_SHASTA:



Home | Main Index | Thread Index | Old Index